diff --git a/crates/deps/gen/src/interface_info.rs b/crates/deps/gen/src/interface_info.rs index e6cc86fda1..b958a3e7df 100644 --- a/crates/deps/gen/src/interface_info.rs +++ b/crates/deps/gen/src/interface_info.rs @@ -31,6 +31,10 @@ impl InterfaceInfo { let mut tokens = TokenStream::with_capacity(); for interface in interfaces { + if interface.is_base && gen.relative.starts_with("Windows.UI.Xaml") && !interface.def.namespace().starts_with("Windows.Foundation") { + continue; + } + for (vtable_offset, method) in interface.def.methods().enumerate() { let name = method.rust_name(); let overload = method_names.entry(name.clone()).or_insert(0); diff --git a/src/Windows/UI/Xaml/Automation/Peers/mod.rs b/src/Windows/UI/Xaml/Automation/Peers/mod.rs index 14e7253855..d1e70a0a23 100644 --- a/src/Windows/UI/Xaml/Automation/Peers/mod.rs +++ b/src/Windows/UI/Xaml/Automation/Peers/mod.rs @@ -129,435 +129,6 @@ impl AppBarAutomationPeer { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } pub fn IAppBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -782,545 +353,111 @@ impl AppBarButtonAutomationPeer { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IAppBarButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for AppBarButtonAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.AppBarButtonAutomationPeer;{443262b2-4f6d-4b76-9d2e-3eff777e8864})"); +} +unsafe impl ::windows::core::Interface for AppBarButtonAutomationPeer { + type Vtable = IAppBarButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x443262b2_4f6d_4b76_9d2e_3eff777e8864); +} +impl ::windows::core::RuntimeName for AppBarButtonAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.AppBarButtonAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: AppBarButtonAutomationPeer) -> Self { + value.0 .0 } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +impl ::core::convert::From<&AppBarButtonAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &AppBarButtonAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBarButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBarButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: AppBarButtonAutomationPeer) -> Self { + value.0 } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&AppBarButtonAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &AppBarButtonAutomationPeer) -> Self { + value.0.clone() } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBarButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBarButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { + type Error = ::windows::core::Error; + fn try_from(value: AppBarButtonAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&AppBarButtonAutomationPeer> for super::Provider::IExpandCollapseProvider { + type Error = ::windows::core::Error; + fn try_from(value: &AppBarButtonAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for AppBarButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for &AppBarButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: AppBarButtonAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&AppBarButtonAutomationPeer> for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: &AppBarButtonAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for AppBarButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Invoke(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IAppBarButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for AppBarButtonAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.AppBarButtonAutomationPeer;{443262b2-4f6d-4b76-9d2e-3eff777e8864})"); -} -unsafe impl ::windows::core::Interface for AppBarButtonAutomationPeer { - type Vtable = IAppBarButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x443262b2_4f6d_4b76_9d2e_3eff777e8864); -} -impl ::windows::core::RuntimeName for AppBarButtonAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.AppBarButtonAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AppBarButtonAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&AppBarButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &AppBarButtonAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBarButtonAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&AppBarButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &AppBarButtonAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: AppBarButtonAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&AppBarButtonAutomationPeer> for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: &AppBarButtonAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for &AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: AppBarButtonAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&AppBarButtonAutomationPeer> for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: &AppBarButtonAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &AppBarButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } impl ::core::convert::From for ButtonAutomationPeer { @@ -1436,527 +573,85 @@ impl AppBarToggleButtonAutomationPeer { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } + pub fn IAppBarToggleButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for AppBarToggleButtonAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.AppBarToggleButtonAutomationPeer;{8464efad-9655-4aff-9550-63ae9ec8fe9c})"); +} +unsafe impl ::windows::core::Interface for AppBarToggleButtonAutomationPeer { + type Vtable = IAppBarToggleButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8464efad_9655_4aff_9550_63ae9ec8fe9c); +} +impl ::windows::core::RuntimeName for AppBarToggleButtonAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.AppBarToggleButtonAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: AppBarToggleButtonAutomationPeer) -> Self { + value.0 .0 } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBarToggleButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBarToggleButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: AppBarToggleButtonAutomationPeer) -> Self { + value.0 } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { + value.0.clone() } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBarToggleButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBarToggleButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: AppBarToggleButtonAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&AppBarToggleButtonAutomationPeer> for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: &AppBarToggleButtonAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for AppBarToggleButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ToggleState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Toggle(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IAppBarToggleButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for AppBarToggleButtonAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.AppBarToggleButtonAutomationPeer;{8464efad-9655-4aff-9550-63ae9ec8fe9c})"); -} -unsafe impl ::windows::core::Interface for AppBarToggleButtonAutomationPeer { - type Vtable = IAppBarToggleButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8464efad_9655_4aff_9550_63ae9ec8fe9c); -} -impl ::windows::core::RuntimeName for AppBarToggleButtonAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.AppBarToggleButtonAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AppBarToggleButtonAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBarToggleButtonAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IToggleProvider { - type Error = ::windows::core::Error; - fn try_from(value: AppBarToggleButtonAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&AppBarToggleButtonAutomationPeer> for super::Provider::IToggleProvider { - type Error = ::windows::core::Error; - fn try_from(value: &AppBarToggleButtonAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &AppBarToggleButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } impl ::core::convert::From for ToggleButtonAutomationPeer { @@ -2077,514 +772,85 @@ impl AutoSuggestBoxAutomationPeer { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IAutoSuggestBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for AutoSuggestBoxAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.AutoSuggestBoxAutomationPeer;{2f32c302-f99b-491d-9726-a5e181643efa})"); +} +unsafe impl ::windows::core::Interface for AutoSuggestBoxAutomationPeer { + type Vtable = IAutoSuggestBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f32c302_f99b_491d_9726_a5e181643efa); +} +impl ::windows::core::RuntimeName for AutoSuggestBoxAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.AutoSuggestBoxAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: AutoSuggestBoxAutomationPeer) -> Self { + value.0 .0 } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +impl ::core::convert::From<&AutoSuggestBoxAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &AutoSuggestBoxAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AutoSuggestBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AutoSuggestBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: AutoSuggestBoxAutomationPeer) -> Self { + value.0 } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&AutoSuggestBoxAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &AutoSuggestBoxAutomationPeer) -> Self { + value.0.clone() } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AutoSuggestBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AutoSuggestBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: AutoSuggestBoxAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&AutoSuggestBoxAutomationPeer> for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: &AutoSuggestBoxAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for AutoSuggestBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IAutoSuggestBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for AutoSuggestBoxAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.AutoSuggestBoxAutomationPeer;{2f32c302-f99b-491d-9726-a5e181643efa})"); -} -unsafe impl ::windows::core::Interface for AutoSuggestBoxAutomationPeer { - type Vtable = IAutoSuggestBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f32c302_f99b_491d_9726_a5e181643efa); -} -impl ::windows::core::RuntimeName for AutoSuggestBoxAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.AutoSuggestBoxAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AutoSuggestBoxAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&AutoSuggestBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &AutoSuggestBoxAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AutoSuggestBoxAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&AutoSuggestBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &AutoSuggestBoxAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: AutoSuggestBoxAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&AutoSuggestBoxAutomationPeer> for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: &AutoSuggestBoxAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &AutoSuggestBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } impl ::core::convert::From for FrameworkElementAutomationPeer { @@ -3318,54 +1584,6 @@ impl AutomationPeer { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IAutomationPeerStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -3504,54 +1722,6 @@ impl AutomationPeerAnnotation { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IAutomationPeerAnnotationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -3674,435 +1844,6 @@ impl ButtonAutomationPeer { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } pub fn IButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -4269,53496 +2010,17549 @@ unsafe impl ::core::marker::Sync for ButtonAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct ButtonBaseAutomationPeer(pub ::windows::core::IInspectable); -impl ButtonBaseAutomationPeer { - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +impl ButtonBaseAutomationPeer {} +unsafe impl ::windows::core::RuntimeType for ButtonBaseAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ButtonBaseAutomationPeer;{a4f3b5b6-7585-4e0b-96d2-08cf6f28befa})"); +} +unsafe impl ::windows::core::Interface for ButtonBaseAutomationPeer { + type Vtable = IButtonBaseAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa4f3b5b6_7585_4e0b_96d2_08cf6f28befa); +} +impl ::windows::core::RuntimeName for ButtonBaseAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ButtonBaseAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ButtonBaseAutomationPeer) -> Self { + value.0 .0 } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ButtonBaseAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ButtonBaseAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ButtonBaseAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ButtonBaseAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ButtonBaseAutomationPeer) -> Self { + value.0.clone() } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ButtonBaseAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ButtonBaseAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ButtonBaseAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ButtonBaseAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ButtonBaseAutomationPeer> for AutomationPeer { + fn from(value: &ButtonBaseAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ButtonBaseAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ButtonBaseAutomationPeer> for super::super::DependencyObject { + fn from(value: &ButtonBaseAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ButtonBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } +} +unsafe impl ::core::marker::Send for ButtonBaseAutomationPeer {} +unsafe impl ::core::marker::Sync for ButtonBaseAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct CalendarDatePickerAutomationPeer(pub ::windows::core::IInspectable); +impl CalendarDatePickerAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn Invoke(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsReadOnly(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Value(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::CalendarDatePicker>>(owner: Param0) -> ::windows::core::Result { + Self::ICalendarDatePickerAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn ICalendarDatePickerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ButtonBaseAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ButtonBaseAutomationPeer;{a4f3b5b6-7585-4e0b-96d2-08cf6f28befa})"); +unsafe impl ::windows::core::RuntimeType for CalendarDatePickerAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.CalendarDatePickerAutomationPeer;{40d8938e-db5e-4b03-beba-d10f62419787})"); } -unsafe impl ::windows::core::Interface for ButtonBaseAutomationPeer { - type Vtable = IButtonBaseAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa4f3b5b6_7585_4e0b_96d2_08cf6f28befa); +unsafe impl ::windows::core::Interface for CalendarDatePickerAutomationPeer { + type Vtable = ICalendarDatePickerAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40d8938e_db5e_4b03_beba_d10f62419787); } -impl ::windows::core::RuntimeName for ButtonBaseAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ButtonBaseAutomationPeer"; +impl ::windows::core::RuntimeName for CalendarDatePickerAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.CalendarDatePickerAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ButtonBaseAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: CalendarDatePickerAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ButtonBaseAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ButtonBaseAutomationPeer) -> Self { +impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &CalendarDatePickerAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ButtonBaseAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: CalendarDatePickerAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ButtonBaseAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ButtonBaseAutomationPeer) -> Self { +impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &CalendarDatePickerAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ButtonBaseAutomationPeer) -> Self { +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: CalendarDatePickerAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&CalendarDatePickerAutomationPeer> for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: &CalendarDatePickerAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for CalendarDatePickerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &CalendarDatePickerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IValueProvider { + type Error = ::windows::core::Error; + fn try_from(value: CalendarDatePickerAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&CalendarDatePickerAutomationPeer> for super::Provider::IValueProvider { + type Error = ::windows::core::Error; + fn try_from(value: &CalendarDatePickerAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IValueProvider> for CalendarDatePickerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IValueProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IValueProvider> for &CalendarDatePickerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IValueProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: CalendarDatePickerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ButtonBaseAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ButtonBaseAutomationPeer) -> Self { +impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &CalendarDatePickerAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ButtonBaseAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: CalendarDatePickerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ButtonBaseAutomationPeer> for AutomationPeer { - fn from(value: &ButtonBaseAutomationPeer) -> Self { +impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for AutomationPeer { + fn from(value: &CalendarDatePickerAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ButtonBaseAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: CalendarDatePickerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ButtonBaseAutomationPeer> for super::super::DependencyObject { - fn from(value: &ButtonBaseAutomationPeer) -> Self { +impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for super::super::DependencyObject { + fn from(value: &CalendarDatePickerAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ButtonBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CalendarDatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ButtonBaseAutomationPeer {} -unsafe impl ::core::marker::Sync for ButtonBaseAutomationPeer {} +unsafe impl ::core::marker::Send for CalendarDatePickerAutomationPeer {} +unsafe impl ::core::marker::Sync for CalendarDatePickerAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct CalendarDatePickerAutomationPeer(pub ::windows::core::IInspectable); -impl CalendarDatePickerAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Invoke(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsReadOnly(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Value(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } +pub struct CaptureElementAutomationPeer(pub ::windows::core::IInspectable); +impl CaptureElementAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::CalendarDatePicker>>(owner: Param0) -> ::windows::core::Result { - Self::ICalendarDatePickerAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::CaptureElement>>(owner: Param0) -> ::windows::core::Result { + Self::ICaptureElementAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue2<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ICalendarDatePickerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } + pub fn ICaptureElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for CalendarDatePickerAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.CalendarDatePickerAutomationPeer;{40d8938e-db5e-4b03-beba-d10f62419787})"); +unsafe impl ::windows::core::RuntimeType for CaptureElementAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.CaptureElementAutomationPeer;{dcc44ee0-fa45-45c6-8bb7-320d808f5958})"); } -unsafe impl ::windows::core::Interface for CalendarDatePickerAutomationPeer { - type Vtable = ICalendarDatePickerAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40d8938e_db5e_4b03_beba_d10f62419787); +unsafe impl ::windows::core::Interface for CaptureElementAutomationPeer { + type Vtable = ICaptureElementAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdcc44ee0_fa45_45c6_8bb7_320d808f5958); } -impl ::windows::core::RuntimeName for CalendarDatePickerAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.CalendarDatePickerAutomationPeer"; +impl ::windows::core::RuntimeName for CaptureElementAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.CaptureElementAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: CaptureElementAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&CaptureElementAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &CaptureElementAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: CaptureElementAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&CaptureElementAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &CaptureElementAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: CalendarDatePickerAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&CalendarDatePickerAutomationPeer> for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: &CalendarDatePickerAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for CalendarDatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &CalendarDatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IValueProvider { - type Error = ::windows::core::Error; - fn try_from(value: CalendarDatePickerAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&CalendarDatePickerAutomationPeer> for super::Provider::IValueProvider { - type Error = ::windows::core::Error; - fn try_from(value: &CalendarDatePickerAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IValueProvider> for CalendarDatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IValueProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IValueProvider> for &CalendarDatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IValueProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: CaptureElementAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&CaptureElementAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &CaptureElementAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: CaptureElementAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for AutomationPeer { - fn from(value: &CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&CaptureElementAutomationPeer> for AutomationPeer { + fn from(value: &CaptureElementAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: CaptureElementAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for super::super::DependencyObject { - fn from(value: &CalendarDatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&CaptureElementAutomationPeer> for super::super::DependencyObject { + fn from(value: &CaptureElementAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CalendarDatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CaptureElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for CalendarDatePickerAutomationPeer {} -unsafe impl ::core::marker::Sync for CalendarDatePickerAutomationPeer {} +unsafe impl ::core::marker::Send for CaptureElementAutomationPeer {} +unsafe impl ::core::marker::Sync for CaptureElementAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct CaptureElementAutomationPeer(pub ::windows::core::IInspectable); -impl CaptureElementAutomationPeer { +pub struct CheckBoxAutomationPeer(pub ::windows::core::IInspectable); +impl CheckBoxAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::CaptureElement>>(owner: Param0) -> ::windows::core::Result { - Self::ICaptureElementAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::CheckBox>>(owner: Param0) -> ::windows::core::Result { + Self::ICheckBoxAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ICaptureElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } + pub fn ICheckBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for CaptureElementAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.CaptureElementAutomationPeer;{dcc44ee0-fa45-45c6-8bb7-320d808f5958})"); +unsafe impl ::windows::core::RuntimeType for CheckBoxAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.CheckBoxAutomationPeer;{eb15bc42-c0a9-46c6-ac24-b83de429c733})"); } -unsafe impl ::windows::core::Interface for CaptureElementAutomationPeer { - type Vtable = ICaptureElementAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdcc44ee0_fa45_45c6_8bb7_320d808f5958); +unsafe impl ::windows::core::Interface for CheckBoxAutomationPeer { + type Vtable = ICheckBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb15bc42_c0a9_46c6_ac24_b83de429c733); } -impl ::windows::core::RuntimeName for CaptureElementAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.CaptureElementAutomationPeer"; +impl ::windows::core::RuntimeName for CheckBoxAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.CheckBoxAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CaptureElementAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: CheckBoxAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&CaptureElementAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &CaptureElementAutomationPeer) -> Self { +impl ::core::convert::From<&CheckBoxAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &CheckBoxAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CaptureElementAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: CheckBoxAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&CaptureElementAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &CaptureElementAutomationPeer) -> Self { +impl ::core::convert::From<&CheckBoxAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &CheckBoxAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: CaptureElementAutomationPeer) -> Self { +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: CheckBoxAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&CheckBoxAutomationPeer> for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: &CheckBoxAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for CheckBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &CheckBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for ToggleButtonAutomationPeer { + fn from(value: CheckBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&CheckBoxAutomationPeer> for ToggleButtonAutomationPeer { + fn from(value: &CheckBoxAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for CheckBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for &CheckBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for ButtonBaseAutomationPeer { + fn from(value: CheckBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&CheckBoxAutomationPeer> for ButtonBaseAutomationPeer { + fn from(value: &CheckBoxAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for CheckBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &CheckBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: CheckBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CaptureElementAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &CaptureElementAutomationPeer) -> Self { +impl ::core::convert::From<&CheckBoxAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &CheckBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: CaptureElementAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: CheckBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CaptureElementAutomationPeer> for AutomationPeer { - fn from(value: &CaptureElementAutomationPeer) -> Self { +impl ::core::convert::From<&CheckBoxAutomationPeer> for AutomationPeer { + fn from(value: &CheckBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CaptureElementAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: CheckBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CaptureElementAutomationPeer> for super::super::DependencyObject { - fn from(value: &CaptureElementAutomationPeer) -> Self { +impl ::core::convert::From<&CheckBoxAutomationPeer> for super::super::DependencyObject { + fn from(value: &CheckBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CaptureElementAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CheckBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for CaptureElementAutomationPeer {} -unsafe impl ::core::marker::Sync for CaptureElementAutomationPeer {} +unsafe impl ::core::marker::Send for CheckBoxAutomationPeer {} +unsafe impl ::core::marker::Sync for CheckBoxAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct CheckBoxAutomationPeer(pub ::windows::core::IInspectable); -impl CheckBoxAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::CheckBox>>(owner: Param0) -> ::windows::core::Result { - Self::ICheckBoxAutomationPeerFactory(|this| unsafe { +pub struct ColorPickerSliderAutomationPeer(pub ::windows::core::IInspectable); +impl ColorPickerSliderAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls_Primitives")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ColorPickerSlider>>(owner: Param0) -> ::windows::core::Result { + Self::IColorPickerSliderAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ToggleState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Toggle(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ICheckBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IColorPickerSliderAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for CheckBoxAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.CheckBoxAutomationPeer;{eb15bc42-c0a9-46c6-ac24-b83de429c733})"); +unsafe impl ::windows::core::RuntimeType for ColorPickerSliderAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ColorPickerSliderAutomationPeer;{a514215a-7293-4577-924c-47d4e0bf9b90})"); } -unsafe impl ::windows::core::Interface for CheckBoxAutomationPeer { - type Vtable = ICheckBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb15bc42_c0a9_46c6_ac24_b83de429c733); +unsafe impl ::windows::core::Interface for ColorPickerSliderAutomationPeer { + type Vtable = IColorPickerSliderAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa514215a_7293_4577_924c_47d4e0bf9b90); } -impl ::windows::core::RuntimeName for CheckBoxAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.CheckBoxAutomationPeer"; +impl ::windows::core::RuntimeName for ColorPickerSliderAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ColorPickerSliderAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ColorPickerSliderAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&CheckBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ColorPickerSliderAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ColorPickerSliderAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&CheckBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ColorPickerSliderAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { type Error = ::windows::core::Error; - fn try_from(value: CheckBoxAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ColorPickerSliderAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&CheckBoxAutomationPeer> for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom<&ColorPickerSliderAutomationPeer> for super::Provider::IRangeValueProvider { type Error = ::windows::core::Error; - fn try_from(value: &CheckBoxAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ColorPickerSliderAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for CheckBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for ColorPickerSliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &CheckBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &ColorPickerSliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for ToggleButtonAutomationPeer { - fn from(value: CheckBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for SliderAutomationPeer { + fn from(value: ColorPickerSliderAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CheckBoxAutomationPeer> for ToggleButtonAutomationPeer { - fn from(value: &CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for SliderAutomationPeer { + fn from(value: &ColorPickerSliderAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for CheckBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, SliderAutomationPeer> for ColorPickerSliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SliderAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for &CheckBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, SliderAutomationPeer> for &ColorPickerSliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SliderAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for ButtonBaseAutomationPeer { - fn from(value: CheckBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for RangeBaseAutomationPeer { + fn from(value: ColorPickerSliderAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CheckBoxAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for RangeBaseAutomationPeer { + fn from(value: &ColorPickerSliderAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for CheckBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for ColorPickerSliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &CheckBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for &ColorPickerSliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ColorPickerSliderAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CheckBoxAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ColorPickerSliderAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ColorPickerSliderAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CheckBoxAutomationPeer> for AutomationPeer { - fn from(value: &CheckBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() +impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for AutomationPeer { + fn from(value: &ColorPickerSliderAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ColorPickerSliderAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CheckBoxAutomationPeer> for super::super::DependencyObject { - fn from(value: &CheckBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for super::super::DependencyObject { + fn from(value: &ColorPickerSliderAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CheckBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ColorPickerSliderAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for CheckBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for CheckBoxAutomationPeer {} +unsafe impl ::core::marker::Send for ColorPickerSliderAutomationPeer {} +unsafe impl ::core::marker::Sync for ColorPickerSliderAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ColorPickerSliderAutomationPeer(pub ::windows::core::IInspectable); -impl ColorPickerSliderAutomationPeer { +pub struct ColorSpectrumAutomationPeer(pub ::windows::core::IInspectable); +impl ColorSpectrumAutomationPeer { #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ColorPickerSlider>>(owner: Param0) -> ::windows::core::Result { - Self::IColorPickerSliderAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ColorSpectrum>>(owner: Param0) -> ::windows::core::Result { + Self::IColorSpectrumAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } + pub fn IColorSpectrumAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for ColorSpectrumAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ColorSpectrumAutomationPeer;{15d5ba03-010d-4ff7-9087-f4dd09f831b7})"); +} +unsafe impl ::windows::core::Interface for ColorSpectrumAutomationPeer { + type Vtable = IColorSpectrumAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15d5ba03_010d_4ff7_9087_f4dd09f831b7); +} +impl ::windows::core::RuntimeName for ColorSpectrumAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ColorSpectrumAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ColorSpectrumAutomationPeer) -> Self { + value.0 .0 } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&ColorSpectrumAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ColorSpectrumAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ColorSpectrumAutomationPeer) -> Self { + value.0 } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl ::core::convert::From<&ColorSpectrumAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ColorSpectrumAutomationPeer) -> Self { + value.0.clone() } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ColorSpectrumAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl ::core::convert::From<&ColorSpectrumAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ColorSpectrumAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ColorSpectrumAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ColorSpectrumAutomationPeer> for AutomationPeer { + fn from(value: &ColorSpectrumAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ColorSpectrumAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ColorSpectrumAutomationPeer> for super::super::DependencyObject { + fn from(value: &ColorSpectrumAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ColorSpectrumAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ColorSpectrumAutomationPeer {} +unsafe impl ::core::marker::Sync for ColorSpectrumAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ComboBoxAutomationPeer(pub ::windows::core::IInspectable); +impl ComboBoxAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ExpandCollapseState(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: super::ExpandCollapseState = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Collapse(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Expand(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn IsReadOnly(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Value(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn IsModal(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn IsTopmost(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Maximizable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Minimizable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn InteractionState(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::WindowInteractionState = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn VisualState(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::WindowVisualState = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Close(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SetVisualState(&self, state: super::WindowVisualState) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), state).ok() } + } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn WaitForInputIdle(&self, milliseconds: i32) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), milliseconds, &mut result__).from_abi::(result__) } } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ComboBox>>(owner: Param0) -> ::windows::core::Result { + Self::IComboBoxAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn IComboBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ComboBoxAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ComboBoxAutomationPeer;{7eb40d0b-75c5-4263-ba6a-d4a54fb0f239})"); +} +unsafe impl ::windows::core::Interface for ComboBoxAutomationPeer { + type Vtable = IComboBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7eb40d0b_75c5_4263_ba6a_d4a54fb0f239); +} +impl ::windows::core::RuntimeName for ComboBoxAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ComboBoxAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ComboBoxAutomationPeer) -> Self { + value.0 .0 } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&ComboBoxAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ComboBoxAutomationPeer) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ComboBoxAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&ComboBoxAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ComboBoxAutomationPeer) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { + type Error = ::windows::core::Error; + fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::IExpandCollapseProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for &ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IValueProvider { + type Error = ::windows::core::Error; + fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::IValueProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IValueProvider> for ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IValueProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsReadOnly(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Maximum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Minimum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Value(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetValue2(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IColorPickerSliderAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ColorPickerSliderAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ColorPickerSliderAutomationPeer;{a514215a-7293-4577-924c-47d4e0bf9b90})"); -} -unsafe impl ::windows::core::Interface for ColorPickerSliderAutomationPeer { - type Vtable = IColorPickerSliderAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa514215a_7293_4577_924c_47d4e0bf9b90); } -impl ::windows::core::RuntimeName for ColorPickerSliderAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ColorPickerSliderAutomationPeer"; +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IValueProvider> for &ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IValueProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - value.0 .0 +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IWindowProvider { + type Error = ::windows::core::Error; + fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } } -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ColorPickerSliderAutomationPeer) -> Self { - value.0 .0.clone() +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::IWindowProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IWindowProvider> for ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IWindowProvider> { + ::windows::core::IntoParam::into_param(&self) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IWindowProvider> for &ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IWindowProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - value.0 +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } } -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ColorPickerSliderAutomationPeer) -> Self { - value.0.clone() +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { type Error = ::windows::core::Error; - fn try_from(value: ColorPickerSliderAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ColorPickerSliderAutomationPeer> for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::ISelectionProvider { type Error = ::windows::core::Error; - fn try_from(value: &ColorPickerSliderAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for SliderAutomationPeer { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for SelectorAutomationPeer { + fn from(value: ComboBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for SliderAutomationPeer { - fn from(value: &ColorPickerSliderAutomationPeer) -> Self { +impl ::core::convert::From<&ComboBoxAutomationPeer> for SelectorAutomationPeer { + fn from(value: &ComboBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, SliderAutomationPeer> for ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SliderAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, SliderAutomationPeer> for &ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SliderAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for RangeBaseAutomationPeer { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for ItemsControlAutomationPeer { + fn from(value: ComboBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for RangeBaseAutomationPeer { - fn from(value: &ColorPickerSliderAutomationPeer) -> Self { +impl ::core::convert::From<&ComboBoxAutomationPeer> for ItemsControlAutomationPeer { + fn from(value: &ComboBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for &ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &ComboBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ComboBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ColorPickerSliderAutomationPeer) -> Self { +impl ::core::convert::From<&ComboBoxAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ComboBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ColorPickerSliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ComboBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ColorPickerSliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ComboBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ComboBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for AutomationPeer { - fn from(value: &ColorPickerSliderAutomationPeer) -> Self { +impl ::core::convert::From<&ComboBoxAutomationPeer> for AutomationPeer { + fn from(value: &ComboBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ColorPickerSliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ComboBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ColorPickerSliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ComboBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ComboBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for super::super::DependencyObject { - fn from(value: &ColorPickerSliderAutomationPeer) -> Self { +impl ::core::convert::From<&ComboBoxAutomationPeer> for super::super::DependencyObject { + fn from(value: &ComboBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ColorPickerSliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ColorPickerSliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ComboBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ColorPickerSliderAutomationPeer {} -unsafe impl ::core::marker::Sync for ColorPickerSliderAutomationPeer {} +unsafe impl ::core::marker::Send for ComboBoxAutomationPeer {} +unsafe impl ::core::marker::Sync for ComboBoxAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ColorSpectrumAutomationPeer(pub ::windows::core::IInspectable); -impl ColorSpectrumAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ColorSpectrum>>(owner: Param0) -> ::windows::core::Result { - Self::IColorSpectrumAutomationPeerFactory(|this| unsafe { +pub struct ComboBoxItemAutomationPeer(pub ::windows::core::IInspectable); +impl ComboBoxItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ComboBoxItem>>(owner: Param0) -> ::windows::core::Result { + Self::IComboBoxItemAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } + pub fn IComboBoxItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ComboBoxItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ComboBoxItemAutomationPeer;{12ddc76e-9552-446a-82ee-938cc371800f})"); +} +unsafe impl ::windows::core::Interface for ComboBoxItemAutomationPeer { + type Vtable = IComboBoxItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x12ddc76e_9552_446a_82ee_938cc371800f); +} +impl ::windows::core::RuntimeName for ComboBoxItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ComboBoxItemAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ComboBoxItemAutomationPeer) -> Self { + value.0 .0 } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&ComboBoxItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ComboBoxItemAutomationPeer) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ComboBoxItemAutomationPeer) -> Self { + value.0 } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ComboBoxItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ComboBoxItemAutomationPeer) -> Self { + value.0.clone() } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ComboBoxItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl ::core::convert::From<&ComboBoxItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ComboBoxItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ComboBoxItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ComboBoxItemAutomationPeer> for AutomationPeer { + fn from(value: &ComboBoxItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ComboBoxItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ComboBoxItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &ComboBoxItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ComboBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +unsafe impl ::core::marker::Send for ComboBoxItemAutomationPeer {} +unsafe impl ::core::marker::Sync for ComboBoxItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ComboBoxItemDataAutomationPeer(pub ::windows::core::IInspectable); +impl ComboBoxItemDataAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ComboBoxAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { + Self::IComboBoxItemDataAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IComboBoxItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ComboBoxItemDataAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ComboBoxItemDataAutomationPeer;{4fef6df2-289c-4c04-831b-5a668c6d7104})"); +} +unsafe impl ::windows::core::Interface for ComboBoxItemDataAutomationPeer { + type Vtable = IComboBoxItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4fef6df2_289c_4c04_831b_5a668c6d7104); +} +impl ::windows::core::RuntimeName for ComboBoxItemDataAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ComboBoxItemDataAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ComboBoxItemDataAutomationPeer) -> Self { + value.0 .0 } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ComboBoxItemDataAutomationPeer) -> Self { + value.0 } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { + value.0.clone() } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ComboBoxItemDataAutomationPeer> for super::Provider::IScrollItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ComboBoxItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ComboBoxItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl ::core::convert::From for SelectorItemAutomationPeer { + fn from(value: ComboBoxItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for SelectorItemAutomationPeer { + fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From for ItemAutomationPeer { + fn from(value: ComboBoxItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for ItemAutomationPeer { + fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ComboBoxItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for AutomationPeer { + fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ComboBoxItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for super::super::DependencyObject { + fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ComboBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for ComboBoxItemDataAutomationPeer {} +unsafe impl ::core::marker::Sync for ComboBoxItemDataAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct DatePickerAutomationPeer(pub ::windows::core::IInspectable); +impl DatePickerAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::DatePicker>>(owner: Param0) -> ::windows::core::Result { + Self::IDatePickerAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IColorSpectrumAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IDatePickerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ColorSpectrumAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ColorSpectrumAutomationPeer;{15d5ba03-010d-4ff7-9087-f4dd09f831b7})"); +unsafe impl ::windows::core::RuntimeType for DatePickerAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.DatePickerAutomationPeer;{d07d357f-a0b9-45dc-991a-76c505e7d0f5})"); } -unsafe impl ::windows::core::Interface for ColorSpectrumAutomationPeer { - type Vtable = IColorSpectrumAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15d5ba03_010d_4ff7_9087_f4dd09f831b7); +unsafe impl ::windows::core::Interface for DatePickerAutomationPeer { + type Vtable = IDatePickerAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd07d357f_a0b9_45dc_991a_76c505e7d0f5); } -impl ::windows::core::RuntimeName for ColorSpectrumAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ColorSpectrumAutomationPeer"; +impl ::windows::core::RuntimeName for DatePickerAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.DatePickerAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: DatePickerAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From<&DatePickerAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &DatePickerAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: DatePickerAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From<&DatePickerAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &DatePickerAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: DatePickerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From<&DatePickerAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &DatePickerAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: DatePickerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for AutomationPeer { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From<&DatePickerAutomationPeer> for AutomationPeer { + fn from(value: &DatePickerAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: DatePickerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for super::super::DependencyObject { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { +impl ::core::convert::From<&DatePickerAutomationPeer> for super::super::DependencyObject { + fn from(value: &DatePickerAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ColorSpectrumAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &DatePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ColorSpectrumAutomationPeer {} -unsafe impl ::core::marker::Sync for ColorSpectrumAutomationPeer {} +unsafe impl ::core::marker::Send for DatePickerAutomationPeer {} +unsafe impl ::core::marker::Sync for DatePickerAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ComboBoxAutomationPeer(pub ::windows::core::IInspectable); -impl ComboBoxAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ExpandCollapseState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ExpandCollapseState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Collapse(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } +pub struct DatePickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +impl DatePickerFlyoutPresenterAutomationPeer {} +unsafe impl ::windows::core::RuntimeType for DatePickerFlyoutPresenterAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.DatePickerFlyoutPresenterAutomationPeer;{752aed38-c2bf-4880-82b2-a6c05e90c135})"); +} +unsafe impl ::windows::core::Interface for DatePickerFlyoutPresenterAutomationPeer { + type Vtable = IDatePickerFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x752aed38_c2bf_4880_82b2_a6c05e90c135); +} +impl ::windows::core::RuntimeName for DatePickerFlyoutPresenterAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.DatePickerFlyoutPresenterAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Expand(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsReadOnly(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Value(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsModal(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsTopmost(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Maximizable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Minimizable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn InteractionState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::WindowInteractionState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VisualState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::WindowVisualState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Close(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetVisualState(&self, state: super::WindowVisualState) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), state).ok() } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn WaitForInputIdle(&self, milliseconds: i32) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), milliseconds, &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for AutomationPeer { + fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ComboBox>>(owner: Param0) -> ::windows::core::Result { - Self::IComboBoxAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetValue2<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for super::super::DependencyObject { + fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &DatePickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +} +unsafe impl ::core::marker::Send for DatePickerFlyoutPresenterAutomationPeer {} +unsafe impl ::core::marker::Sync for DatePickerFlyoutPresenterAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct FlipViewAutomationPeer(pub ::windows::core::IInspectable); +impl FlipViewAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::FlipView>>(owner: Param0) -> ::windows::core::Result { + Self::IFlipViewAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn IFlipViewAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +unsafe impl ::windows::core::RuntimeType for FlipViewAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FlipViewAutomationPeer;{8ec0353a-4284-4b00-aef8-a2688ea5e3c4})"); +} +unsafe impl ::windows::core::Interface for FlipViewAutomationPeer { + type Vtable = IFlipViewAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8ec0353a_4284_4b00_aef8_a2688ea5e3c4); +} +impl ::windows::core::RuntimeName for FlipViewAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FlipViewAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: FlipViewAutomationPeer) -> Self { + value.0 .0 } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlipViewAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &FlipViewAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: FlipViewAutomationPeer) -> Self { + value.0 } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl ::core::convert::From<&FlipViewAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &FlipViewAutomationPeer) -> Self { + value.0.clone() } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: FlipViewAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&FlipViewAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &FlipViewAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: FlipViewAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&FlipViewAutomationPeer> for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: &FlipViewAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for SelectorAutomationPeer { + fn from(value: FlipViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlipViewAutomationPeer> for SelectorAutomationPeer { + fn from(value: &FlipViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ItemsControlAutomationPeer { + fn from(value: FlipViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlipViewAutomationPeer> for ItemsControlAutomationPeer { + fn from(value: &FlipViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: FlipViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlipViewAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &FlipViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: FlipViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&FlipViewAutomationPeer> for AutomationPeer { + fn from(value: &FlipViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: FlipViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlipViewAutomationPeer> for super::super::DependencyObject { + fn from(value: &FlipViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlipViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +} +unsafe impl ::core::marker::Send for FlipViewAutomationPeer {} +unsafe impl ::core::marker::Sync for FlipViewAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct FlipViewItemAutomationPeer(pub ::windows::core::IInspectable); +impl FlipViewItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::FlipViewItem>>(owner: Param0) -> ::windows::core::Result { + Self::IFlipViewItemAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } + pub fn IFlipViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for FlipViewItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FlipViewItemAutomationPeer;{c83034de-fa08-4bd3-aeb2-d2e5bfa04df9})"); +} +unsafe impl ::windows::core::Interface for FlipViewItemAutomationPeer { + type Vtable = IFlipViewItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc83034de_fa08_4bd3_aeb2_d2e5bfa04df9); +} +impl ::windows::core::RuntimeName for FlipViewItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FlipViewItemAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: FlipViewItemAutomationPeer) -> Self { + value.0 .0 } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlipViewItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &FlipViewItemAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: FlipViewItemAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlipViewItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &FlipViewItemAutomationPeer) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: FlipViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlipViewItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &FlipViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: FlipViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlipViewItemAutomationPeer> for AutomationPeer { + fn from(value: &FlipViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: FlipViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&FlipViewItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &FlipViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlipViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for FlipViewItemAutomationPeer {} +unsafe impl ::core::marker::Sync for FlipViewItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct FlipViewItemDataAutomationPeer(pub ::windows::core::IInspectable); +impl FlipViewItemDataAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, FlipViewAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { + Self::IFlipViewItemDataAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IComboBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IFlipViewItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ComboBoxAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ComboBoxAutomationPeer;{7eb40d0b-75c5-4263-ba6a-d4a54fb0f239})"); +unsafe impl ::windows::core::RuntimeType for FlipViewItemDataAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FlipViewItemDataAutomationPeer;{b0986175-00bc-4118-8a6f-16ee9c15d968})"); } -unsafe impl ::windows::core::Interface for ComboBoxAutomationPeer { - type Vtable = IComboBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7eb40d0b_75c5_4263_ba6a_d4a54fb0f239); +unsafe impl ::windows::core::Interface for FlipViewItemDataAutomationPeer { + type Vtable = IFlipViewItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb0986175_00bc_4118_8a6f_16ee9c15d968); } -impl ::windows::core::RuntimeName for ComboBoxAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ComboBoxAutomationPeer"; +impl ::windows::core::RuntimeName for FlipViewItemDataAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FlipViewItemDataAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: FlipViewItemDataAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ComboBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &FlipViewItemDataAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ComboBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlipViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ComboBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlipViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: FlipViewItemDataAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ComboBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &FlipViewItemDataAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ComboBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlipViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ComboBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlipViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { +impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { type Error = ::windows::core::Error; - fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { + fn try_from(value: FlipViewItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::IExpandCollapseProvider { +impl ::core::convert::TryFrom<&FlipViewItemDataAutomationPeer> for super::Provider::IScrollItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &FlipViewItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for &ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IValueProvider { +impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { + fn try_from(value: FlipViewItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::IValueProvider { +impl ::core::convert::TryFrom<&FlipViewItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &FlipViewItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IValueProvider> for ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IValueProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IValueProvider> for &ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IValueProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IWindowProvider { +impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { + fn try_from(value: FlipViewItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::IWindowProvider { +impl ::core::convert::TryFrom<&FlipViewItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &FlipViewItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IWindowProvider> for ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IWindowProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IWindowProvider> for &ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IWindowProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) +impl ::core::convert::From for SelectorItemAutomationPeer { + fn from(value: FlipViewItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) +impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for SelectorItemAutomationPeer { + fn from(value: &FlipViewItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::windows::core::IntoParam::into_param(&self) +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: ComboBoxAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) +impl ::core::convert::From for ItemAutomationPeer { + fn from(value: FlipViewItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ComboBoxAutomationPeer> for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ComboBoxAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) +impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for ItemAutomationPeer { + fn from(value: &FlipViewItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::windows::core::IntoParam::into_param(&self) +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for SelectorAutomationPeer { - fn from(value: ComboBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for AutomationPeer { + fn from(value: FlipViewItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxAutomationPeer> for SelectorAutomationPeer { - fn from(value: &ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for AutomationPeer { + fn from(value: &FlipViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: ComboBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: FlipViewItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for super::super::DependencyObject { + fn from(value: &FlipViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlipViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ComboBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +unsafe impl ::core::marker::Send for FlipViewItemDataAutomationPeer {} +unsafe impl ::core::marker::Sync for FlipViewItemDataAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct FlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +impl FlyoutPresenterAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::FlyoutPresenter>>(owner: Param0) -> ::windows::core::Result { + Self::IFlyoutPresenterAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } -} -impl ::core::convert::From<&ComboBoxAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ComboBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() + pub fn IFlyoutPresenterAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { +unsafe impl ::windows::core::RuntimeType for FlyoutPresenterAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FlyoutPresenterAutomationPeer;{a01840b4-5fca-456f-98ea-300eb40b585e})"); +} +unsafe impl ::windows::core::Interface for FlyoutPresenterAutomationPeer { + type Vtable = IFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa01840b4_5fca_456f_98ea_300eb40b585e); +} +impl ::windows::core::RuntimeName for FlyoutPresenterAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FlyoutPresenterAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: FlyoutPresenterAutomationPeer) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &FlyoutPresenterAutomationPeer) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) + } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: FlyoutPresenterAutomationPeer) -> Self { + value.0 + } +} +impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &FlyoutPresenterAutomationPeer) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: FlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &FlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for FlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ComboBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &FlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: FlyoutPresenterAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxAutomationPeer> for AutomationPeer { - fn from(value: &ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for AutomationPeer { + fn from(value: &FlyoutPresenterAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ComboBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ComboBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: FlyoutPresenterAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxAutomationPeer> for super::super::DependencyObject { - fn from(value: &ComboBoxAutomationPeer) -> Self { +impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for super::super::DependencyObject { + fn from(value: &FlyoutPresenterAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ComboBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ComboBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for ComboBoxAutomationPeer {} +unsafe impl ::core::marker::Send for FlyoutPresenterAutomationPeer {} +unsafe impl ::core::marker::Sync for FlyoutPresenterAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ComboBoxItemAutomationPeer(pub ::windows::core::IInspectable); -impl ComboBoxItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ComboBoxItem>>(owner: Param0) -> ::windows::core::Result { - Self::IComboBoxItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; +pub struct FrameworkElementAutomationPeer(pub ::windows::core::IInspectable); +impl FrameworkElementAutomationPeer { + pub fn Owner(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn FromElement<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(element: Param0) -> ::windows::core::Result { + Self::IFrameworkElementAutomationPeerStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) + }) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn CreatePeerForElement<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(element: Param0) -> ::windows::core::Result { + Self::IFrameworkElementAutomationPeerStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(owner: Param0) -> ::windows::core::Result { + Self::IFrameworkElementAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn IFrameworkElementAutomationPeerStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } + pub fn IFrameworkElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for FrameworkElementAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FrameworkElementAutomationPeer;{b90ad781-bfeb-4451-bd47-9f3a63ebd24a})"); +} +unsafe impl ::windows::core::Interface for FrameworkElementAutomationPeer { + type Vtable = IFrameworkElementAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb90ad781_bfeb_4451_bd47_9f3a63ebd24a); +} +impl ::windows::core::RuntimeName for FrameworkElementAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FrameworkElementAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: FrameworkElementAutomationPeer) -> Self { + value.0 .0 } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&FrameworkElementAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &FrameworkElementAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FrameworkElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FrameworkElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: FrameworkElementAutomationPeer) -> Self { + value.0 } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&FrameworkElementAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &FrameworkElementAutomationPeer) -> Self { + value.0.clone() } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FrameworkElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FrameworkElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: FrameworkElementAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FrameworkElementAutomationPeer> for AutomationPeer { + fn from(value: &FrameworkElementAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FrameworkElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FrameworkElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: FrameworkElementAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&FrameworkElementAutomationPeer> for super::super::DependencyObject { + fn from(value: &FrameworkElementAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FrameworkElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FrameworkElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +} +unsafe impl ::core::marker::Send for FrameworkElementAutomationPeer {} +unsafe impl ::core::marker::Sync for FrameworkElementAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct GridViewAutomationPeer(pub ::windows::core::IInspectable); +impl GridViewAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GridView>>(owner: Param0) -> ::windows::core::Result { + Self::IGridViewAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + pub fn IGridViewAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for GridViewAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GridViewAutomationPeer;{1c4401a4-d951-49ca-8f82-c7f3c60681b0})"); +} +unsafe impl ::windows::core::Interface for GridViewAutomationPeer { + type Vtable = IGridViewAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c4401a4_d951_49ca_8f82_c7f3c60681b0); +} +impl ::windows::core::RuntimeName for GridViewAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GridViewAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: GridViewAutomationPeer) -> Self { + value.0 .0 } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&GridViewAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &GridViewAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: GridViewAutomationPeer) -> Self { + value.0 } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&GridViewAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &GridViewAutomationPeer) -> Self { + value.0.clone() } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IDropTargetProvider { + type Error = ::windows::core::Error; + fn try_from(value: GridViewAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&GridViewAutomationPeer> for super::Provider::IDropTargetProvider { + type Error = ::windows::core::Error; + fn try_from(value: &GridViewAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for &GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: GridViewAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&GridViewAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &GridViewAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: GridViewAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&GridViewAutomationPeer> for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: &GridViewAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl ::core::convert::From for ListViewBaseAutomationPeer { + fn from(value: GridViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl ::core::convert::From<&GridViewAutomationPeer> for ListViewBaseAutomationPeer { + fn from(value: &GridViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer> for &GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for SelectorAutomationPeer { + fn from(value: GridViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From<&GridViewAutomationPeer> for SelectorAutomationPeer { + fn from(value: &GridViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ItemsControlAutomationPeer { + fn from(value: GridViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&GridViewAutomationPeer> for ItemsControlAutomationPeer { + fn from(value: &GridViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: GridViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&GridViewAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &GridViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: GridViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&GridViewAutomationPeer> for AutomationPeer { + fn from(value: &GridViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IComboBoxItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: GridViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&GridViewAutomationPeer> for super::super::DependencyObject { + fn from(value: &GridViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for GridViewAutomationPeer {} +unsafe impl ::core::marker::Sync for GridViewAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct GridViewHeaderItemAutomationPeer(pub ::windows::core::IInspectable); +impl GridViewHeaderItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GridViewHeaderItem>>(owner: Param0) -> ::windows::core::Result { + Self::IGridViewHeaderItemAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IGridViewHeaderItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ComboBoxItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ComboBoxItemAutomationPeer;{12ddc76e-9552-446a-82ee-938cc371800f})"); +unsafe impl ::windows::core::RuntimeType for GridViewHeaderItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GridViewHeaderItemAutomationPeer;{e3dcef3a-e08a-48e7-b23a-2be5b66e474e})"); } -unsafe impl ::windows::core::Interface for ComboBoxItemAutomationPeer { - type Vtable = IComboBoxItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x12ddc76e_9552_446a_82ee_938cc371800f); +unsafe impl ::windows::core::Interface for GridViewHeaderItemAutomationPeer { + type Vtable = IGridViewHeaderItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3dcef3a_e08a_48e7_b23a_2be5b66e474e); } -impl ::windows::core::RuntimeName for ComboBoxItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ComboBoxItemAutomationPeer"; +impl ::windows::core::RuntimeName for GridViewHeaderItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GridViewHeaderItemAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: GridViewHeaderItemAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: GridViewHeaderItemAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From for ListViewBaseHeaderItemAutomationPeer { + fn from(value: GridViewHeaderItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for ListViewBaseHeaderItemAutomationPeer { + fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewBaseHeaderItemAutomationPeer> for GridViewHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseHeaderItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewBaseHeaderItemAutomationPeer> for &GridViewHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseHeaderItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: GridViewHeaderItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: GridViewHeaderItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for AutomationPeer { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for AutomationPeer { + fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: GridViewHeaderItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ComboBoxItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ComboBoxItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ComboBoxItemAutomationPeer {} +unsafe impl ::core::marker::Send for GridViewHeaderItemAutomationPeer {} +unsafe impl ::core::marker::Sync for GridViewHeaderItemAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ComboBoxItemDataAutomationPeer(pub ::windows::core::IInspectable); -impl ComboBoxItemDataAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ComboBoxAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { - Self::IComboBoxItemDataAutomationPeerFactory(|this| unsafe { +pub struct GridViewItemAutomationPeer(pub ::windows::core::IInspectable); +impl GridViewItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GridViewItem>>(owner: Param0) -> ::windows::core::Result { + Self::IGridViewItemAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IGridViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for GridViewItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GridViewItemAutomationPeer;{93ef2d07-346c-4166-a4ba-bc6a181e7f33})"); +} +unsafe impl ::windows::core::Interface for GridViewItemAutomationPeer { + type Vtable = IGridViewItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93ef2d07_346c_4166_a4ba_bc6a181e7f33); +} +impl ::windows::core::RuntimeName for GridViewItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GridViewItemAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: GridViewItemAutomationPeer) -> Self { + value.0 .0 } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +impl ::core::convert::From<&GridViewItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &GridViewItemAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: GridViewItemAutomationPeer) -> Self { + value.0 } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&GridViewItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &GridViewItemAutomationPeer) -> Self { + value.0.clone() } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: GridViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&GridViewItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &GridViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: GridViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&GridViewItemAutomationPeer> for AutomationPeer { + fn from(value: &GridViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: GridViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&GridViewItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &GridViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } +} +unsafe impl ::core::marker::Send for GridViewItemAutomationPeer {} +unsafe impl ::core::marker::Sync for GridViewItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct GridViewItemDataAutomationPeer(pub ::windows::core::IInspectable); +impl GridViewItemDataAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, GridViewAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { + Self::IGridViewItemDataAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IComboBoxItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IGridViewItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ComboBoxItemDataAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ComboBoxItemDataAutomationPeer;{4fef6df2-289c-4c04-831b-5a668c6d7104})"); +unsafe impl ::windows::core::RuntimeType for GridViewItemDataAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GridViewItemDataAutomationPeer;{f3f4868f-29d4-4094-8c54-ea61a88294a4})"); } -unsafe impl ::windows::core::Interface for ComboBoxItemDataAutomationPeer { - type Vtable = IComboBoxItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4fef6df2_289c_4c04_831b_5a668c6d7104); +unsafe impl ::windows::core::Interface for GridViewItemDataAutomationPeer { + type Vtable = IGridViewItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3f4868f_29d4_4094_8c54_ea61a88294a4); } -impl ::windows::core::RuntimeName for ComboBoxItemDataAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ComboBoxItemDataAutomationPeer"; +impl ::windows::core::RuntimeName for GridViewItemDataAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GridViewItemDataAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: GridViewItemDataAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewItemDataAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &GridViewItemDataAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: GridViewItemDataAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewItemDataAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &GridViewItemDataAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { +impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { type Error = ::windows::core::Error; - fn try_from(value: ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: GridViewItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ComboBoxItemDataAutomationPeer> for super::Provider::IScrollItemProvider { +impl ::core::convert::TryFrom<&GridViewItemDataAutomationPeer> for super::Provider::IScrollItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &GridViewItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { +impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: GridViewItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ComboBoxItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { +impl ::core::convert::TryFrom<&GridViewItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &GridViewItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { +impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: GridViewItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ComboBoxItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { +impl ::core::convert::TryFrom<&GridViewItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &ComboBoxItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &GridViewItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for SelectorItemAutomationPeer { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From for SelectorItemAutomationPeer { + fn from(value: GridViewItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for SelectorItemAutomationPeer { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewItemDataAutomationPeer> for SelectorItemAutomationPeer { + fn from(value: &GridViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From for ItemAutomationPeer { + fn from(value: GridViewItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for ItemAutomationPeer { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewItemDataAutomationPeer> for ItemAutomationPeer { + fn from(value: &GridViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: GridViewItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for AutomationPeer { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewItemDataAutomationPeer> for AutomationPeer { + fn from(value: &GridViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: GridViewItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for super::super::DependencyObject { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&GridViewItemDataAutomationPeer> for super::super::DependencyObject { + fn from(value: &GridViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ComboBoxItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ComboBoxItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for ComboBoxItemDataAutomationPeer {} +unsafe impl ::core::marker::Send for GridViewItemDataAutomationPeer {} +unsafe impl ::core::marker::Sync for GridViewItemDataAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct DatePickerAutomationPeer(pub ::windows::core::IInspectable); -impl DatePickerAutomationPeer { +pub struct GroupItemAutomationPeer(pub ::windows::core::IInspectable); +impl GroupItemAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::DatePicker>>(owner: Param0) -> ::windows::core::Result { - Self::IDatePickerAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GroupItem>>(owner: Param0) -> ::windows::core::Result { + Self::IGroupItemAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } + pub fn IGroupItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for GroupItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GroupItemAutomationPeer;{1914fe6d-0740-4236-9ee1-38cf19c1c388})"); +} +unsafe impl ::windows::core::Interface for GroupItemAutomationPeer { + type Vtable = IGroupItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1914fe6d_0740_4236_9ee1_38cf19c1c388); +} +impl ::windows::core::RuntimeName for GroupItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GroupItemAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: GroupItemAutomationPeer) -> Self { + value.0 .0 } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&GroupItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &GroupItemAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: GroupItemAutomationPeer) -> Self { + value.0 } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&GroupItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &GroupItemAutomationPeer) -> Self { + value.0.clone() } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: GroupItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&GroupItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &GroupItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: GroupItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl ::core::convert::From<&GroupItemAutomationPeer> for AutomationPeer { + fn from(value: &GroupItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: GroupItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From<&GroupItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &GroupItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GroupItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +} +unsafe impl ::core::marker::Send for GroupItemAutomationPeer {} +unsafe impl ::core::marker::Sync for GroupItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct HubAutomationPeer(pub ::windows::core::IInspectable); +impl HubAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Hub>>(owner: Param0) -> ::windows::core::Result { + Self::IHubAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IDatePickerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IHubAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for DatePickerAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.DatePickerAutomationPeer;{d07d357f-a0b9-45dc-991a-76c505e7d0f5})"); +unsafe impl ::windows::core::RuntimeType for HubAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.HubAutomationPeer;{4ddee056-4ebc-4620-a05d-903e3c9a4ead})"); } -unsafe impl ::windows::core::Interface for DatePickerAutomationPeer { - type Vtable = IDatePickerAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd07d357f_a0b9_45dc_991a_76c505e7d0f5); +unsafe impl ::windows::core::Interface for HubAutomationPeer { + type Vtable = IHubAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ddee056_4ebc_4620_a05d_903e3c9a4ead); } -impl ::windows::core::RuntimeName for DatePickerAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.DatePickerAutomationPeer"; +impl ::windows::core::RuntimeName for HubAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.HubAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: DatePickerAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: HubAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&DatePickerAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &DatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&HubAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &HubAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DatePickerAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: HubAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&DatePickerAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &DatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&HubAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &HubAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: DatePickerAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: HubAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&DatePickerAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &DatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&HubAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &HubAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: DatePickerAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: HubAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&DatePickerAutomationPeer> for AutomationPeer { - fn from(value: &DatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&HubAutomationPeer> for AutomationPeer { + fn from(value: &HubAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: DatePickerAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: HubAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&DatePickerAutomationPeer> for super::super::DependencyObject { - fn from(value: &DatePickerAutomationPeer) -> Self { +impl ::core::convert::From<&HubAutomationPeer> for super::super::DependencyObject { + fn from(value: &HubAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &DatePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &HubAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for DatePickerAutomationPeer {} -unsafe impl ::core::marker::Sync for DatePickerAutomationPeer {} +unsafe impl ::core::marker::Send for HubAutomationPeer {} +unsafe impl ::core::marker::Sync for HubAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct DatePickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -impl DatePickerFlyoutPresenterAutomationPeer { - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +pub struct HubSectionAutomationPeer(pub ::windows::core::IInspectable); +impl HubSectionAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::HubSection>>(owner: Param0) -> ::windows::core::Result { + Self::IHubSectionAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IHubSectionAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for DatePickerFlyoutPresenterAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.DatePickerFlyoutPresenterAutomationPeer;{752aed38-c2bf-4880-82b2-a6c05e90c135})"); +unsafe impl ::windows::core::RuntimeType for HubSectionAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.HubSectionAutomationPeer;{16d91ff7-7431-4d82-83ce-cfa3192b0f18})"); } -unsafe impl ::windows::core::Interface for DatePickerFlyoutPresenterAutomationPeer { - type Vtable = IDatePickerFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x752aed38_c2bf_4880_82b2_a6c05e90c135); +unsafe impl ::windows::core::Interface for HubSectionAutomationPeer { + type Vtable = IHubSectionAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x16d91ff7_7431_4d82_83ce_cfa3192b0f18); } -impl ::windows::core::RuntimeName for DatePickerFlyoutPresenterAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.DatePickerFlyoutPresenterAutomationPeer"; +impl ::windows::core::RuntimeName for HubSectionAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.HubSectionAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: HubSectionAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&HubSectionAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &HubSectionAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: HubSectionAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&HubSectionAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &HubSectionAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: HubSectionAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&HubSectionAutomationPeer> for super::Provider::IScrollItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &HubSectionAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for HubSectionAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &HubSectionAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: HubSectionAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&HubSectionAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &HubSectionAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: HubSectionAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for AutomationPeer { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&HubSectionAutomationPeer> for AutomationPeer { + fn from(value: &HubSectionAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: HubSectionAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for super::super::DependencyObject { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&HubSectionAutomationPeer> for super::super::DependencyObject { + fn from(value: &HubSectionAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &DatePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &HubSectionAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for DatePickerFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for DatePickerFlyoutPresenterAutomationPeer {} +unsafe impl ::core::marker::Send for HubSectionAutomationPeer {} +unsafe impl ::core::marker::Sync for HubSectionAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct FlipViewAutomationPeer(pub ::windows::core::IInspectable); -impl FlipViewAutomationPeer { +pub struct HyperlinkButtonAutomationPeer(pub ::windows::core::IInspectable); +impl HyperlinkButtonAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Invoke(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } + } #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::FlipView>>(owner: Param0) -> ::windows::core::Result { - Self::IFlipViewAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::HyperlinkButton>>(owner: Param0) -> ::windows::core::Result { + Self::IHyperlinkButtonAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IHyperlinkButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for HyperlinkButtonAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.HyperlinkButtonAutomationPeer;{aa7afcb1-0edf-46d9-aa9e-0eb21d140097})"); +} +unsafe impl ::windows::core::Interface for HyperlinkButtonAutomationPeer { + type Vtable = IHyperlinkButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaa7afcb1_0edf_46d9_aa9e_0eb21d140097); +} +impl ::windows::core::RuntimeName for HyperlinkButtonAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.HyperlinkButtonAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: HyperlinkButtonAutomationPeer) -> Self { + value.0 .0 } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &HyperlinkButtonAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for HyperlinkButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IFlipViewAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for FlipViewAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FlipViewAutomationPeer;{8ec0353a-4284-4b00-aef8-a2688ea5e3c4})"); -} -unsafe impl ::windows::core::Interface for FlipViewAutomationPeer { - type Vtable = IFlipViewAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8ec0353a_4284_4b00_aef8_a2688ea5e3c4); -} -impl ::windows::core::RuntimeName for FlipViewAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FlipViewAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: FlipViewAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&FlipViewAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FlipViewAutomationPeer) -> Self { - value.0 .0.clone() +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a HyperlinkButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlipViewAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: HyperlinkButtonAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&FlipViewAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FlipViewAutomationPeer) -> Self { +impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &HyperlinkButtonAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlipViewAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for HyperlinkButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlipViewAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a HyperlinkButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { +impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { type Error = ::windows::core::Error; - fn try_from(value: FlipViewAutomationPeer) -> ::windows::core::Result { + fn try_from(value: HyperlinkButtonAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&FlipViewAutomationPeer> for super::Provider::IItemContainerProvider { +impl ::core::convert::TryFrom<&HyperlinkButtonAutomationPeer> for super::Provider::IInvokeProvider { type Error = ::windows::core::Error; - fn try_from(value: &FlipViewAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &HyperlinkButtonAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for HyperlinkButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &HyperlinkButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: FlipViewAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) +impl ::core::convert::From for ButtonBaseAutomationPeer { + fn from(value: HyperlinkButtonAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&FlipViewAutomationPeer> for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: &FlipViewAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) +impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for ButtonBaseAutomationPeer { + fn from(value: &HyperlinkButtonAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::windows::core::IntoParam::into_param(&self) +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for HyperlinkButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &HyperlinkButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for SelectorAutomationPeer { - fn from(value: FlipViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: HyperlinkButtonAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&FlipViewAutomationPeer> for SelectorAutomationPeer { - fn from(value: &FlipViewAutomationPeer) -> Self { +impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &HyperlinkButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for HyperlinkButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &HyperlinkButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: FlipViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlipViewAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &FlipViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: FlipViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlipViewAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &FlipViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: FlipViewAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: HyperlinkButtonAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&FlipViewAutomationPeer> for AutomationPeer { - fn from(value: &FlipViewAutomationPeer) -> Self { +impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for AutomationPeer { + fn from(value: &HyperlinkButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlipViewAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for HyperlinkButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FlipViewAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &HyperlinkButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FlipViewAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: HyperlinkButtonAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&FlipViewAutomationPeer> for super::super::DependencyObject { - fn from(value: &FlipViewAutomationPeer) -> Self { +impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for super::super::DependencyObject { + fn from(value: &HyperlinkButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlipViewAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for HyperlinkButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlipViewAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &HyperlinkButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for FlipViewAutomationPeer {} -unsafe impl ::core::marker::Sync for FlipViewAutomationPeer {} +unsafe impl ::core::marker::Send for HyperlinkButtonAutomationPeer {} +unsafe impl ::core::marker::Sync for HyperlinkButtonAutomationPeer {} #[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct FlipViewItemAutomationPeer(pub ::windows::core::IInspectable); -impl FlipViewItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::FlipViewItem>>(owner: Param0) -> ::windows::core::Result { - Self::IFlipViewItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IFlipViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } +#[doc(hidden)] +pub struct IAppBarAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarAutomationPeer { + type Vtable = IAppBarAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8b4acfeb_89fa_4f13_84be_35ca5b7c9590); } -unsafe impl ::windows::core::RuntimeType for FlipViewItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FlipViewItemAutomationPeer;{c83034de-fa08-4bd3-aeb2-d2e5bfa04df9})"); +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAppBarAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarAutomationPeerFactory { + type Vtable = IAppBarAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8360f4e2_e396_4517_af5d_f4cf34c54edf); } -unsafe impl ::windows::core::Interface for FlipViewItemAutomationPeer { - type Vtable = IFlipViewItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc83034de_fa08_4bd3_aeb2_d2e5bfa04df9); +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAppBarButtonAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarButtonAutomationPeer { + type Vtable = IAppBarButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x443262b2_4f6d_4b76_9d2e_3eff777e8864); } -impl ::windows::core::RuntimeName for FlipViewItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FlipViewItemAutomationPeer"; +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarButtonAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAppBarButtonAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarButtonAutomationPeerFactory { + type Vtable = IAppBarButtonAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaef0342a_acb7_42dc_97e3_847071865fd6); } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: FlipViewItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&FlipViewItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - value.0 .0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarButtonAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAppBarToggleButtonAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarToggleButtonAutomationPeer { + type Vtable = IAppBarToggleButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8464efad_9655_4aff_9550_63ae9ec8fe9c); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarToggleButtonAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAppBarToggleButtonAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarToggleButtonAutomationPeerFactory { + type Vtable = IAppBarToggleButtonAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd6f9139d_02c1_4221_9591_7d4efeb74701); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarToggleButtonAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutoSuggestBoxAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutoSuggestBoxAutomationPeer { + type Vtable = IAutoSuggestBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f32c302_f99b_491d_9726_a5e181643efa); } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlipViewItemAutomationPeer) -> Self { - value.0 - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutoSuggestBoxAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutoSuggestBoxAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutoSuggestBoxAutomationPeerFactory { + type Vtable = IAutoSuggestBoxAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x80046849_18e7_4475_b362_4bbd53d24562); } -impl ::core::convert::From<&FlipViewItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - value.0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutoSuggestBoxAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeer { + type Vtable = IAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x35aac87a_62ee_4d3e_a24c_2bc8432d68b7); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, patterninterface: PatternInterface, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, eventid: AutomationEvents) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, automationproperty: ::windows::core::RawPtr, oldvalue: ::windows::core::RawPtr, newvalue: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationControlType) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationOrientation) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, point: super::super::super::super::Foundation::Point, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationLiveSetting) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeer2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeer2 { + type Vtable = IAutomationPeer2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xea1f89c7_ebf5_4ab8_88f7_680d821dac61); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeer2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeer3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeer3 { + type Vtable = IAutomationPeer3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3cfb977_0084_41d7_a221_28158d3bc32c); } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: FlipViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeer3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, direction: AutomationNavigationDirection, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pointinwindowcoordinates: super::super::super::super::Foundation::Point, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, peer: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, structurechangetype: AutomationStructureChangeType, child: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeer4(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeer4 { + type Vtable = IAutomationPeer4_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x761ce752_73c1_4f44_be75_43c49ec0d4d5); } -impl ::core::convert::From<&FlipViewItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeer4_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationLandmarkType) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeer5(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeer5 { + type Vtable = IAutomationPeer5_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf632e1c6_0a3f_4574_9fef_cdc151765674); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeer5_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeer6(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeer6 { + type Vtable = IAutomationPeer6_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcaf8608f_13ff_42fb_866d_22206434cc6b); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeer6_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeer7(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeer7 { + type Vtable = IAutomationPeer7_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x796b3287_e642_48ab_b223_5208b41da9d6); } -impl ::core::convert::From for AutomationPeer { - fn from(value: FlipViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeer7_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, activityid: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeer8(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeer8 { + type Vtable = IAutomationPeer8_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5c6a1fe6_9a55_4d7f_9498_cfe429e92da8); } -impl ::core::convert::From<&FlipViewItemAutomationPeer> for AutomationPeer { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeer8_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationHeadingLevel) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeer9(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeer9 { + type Vtable = IAutomationPeer9_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdf2e0265_1d74_57fa_8094_f81c2f626b8c); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeer9_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerAnnotation(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerAnnotation { + type Vtable = IAutomationPeerAnnotation_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0c456061_52cf_43fa_82f8_07f137351e5a); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerAnnotation_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::AnnotationType) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::AnnotationType) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerAnnotationFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerAnnotationFactory { + type Vtable = IAutomationPeerAnnotationFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf59c439e_c65b_43cd_9009_03fc023363a7); } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FlipViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerAnnotationFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, r#type: super::AnnotationType, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, r#type: super::AnnotationType, peer: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerAnnotationStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerAnnotationStatics { + type Vtable = IAutomationPeerAnnotationStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8809a87d_09b2_4d45_b78b_1d3b3b09f661); } -impl ::core::convert::From<&FlipViewItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerAnnotationStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerFactory { + type Vtable = IAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20c27545_a88b_43c8_bc24_cea9dafd04a3); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerOverrides { + type Vtable = IAutomationPeerOverrides_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbea93e67_dbee_4f7b_af0d_a79aae5333bf); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, patterninterface: PatternInterface, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationControlType) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationOrientation) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, point: super::super::super::super::Foundation::Point, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationLiveSetting) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerOverrides2 { + type Vtable = IAutomationPeerOverrides2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2603682a_9da6_4023_b496_496e5ef228d2); } -unsafe impl ::core::marker::Send for FlipViewItemAutomationPeer {} -unsafe impl ::core::marker::Sync for FlipViewItemAutomationPeer {} +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, +); #[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct FlipViewItemDataAutomationPeer(pub ::windows::core::IInspectable); -impl FlipViewItemDataAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, FlipViewAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { - Self::IFlipViewItemDataAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IFlipViewItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for FlipViewItemDataAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FlipViewItemDataAutomationPeer;{b0986175-00bc-4118-8a6f-16ee9c15d968})"); -} -unsafe impl ::windows::core::Interface for FlipViewItemDataAutomationPeer { - type Vtable = IFlipViewItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb0986175_00bc_4118_8a6f_16ee9c15d968); -} -impl ::windows::core::RuntimeName for FlipViewItemDataAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FlipViewItemDataAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FlipViewItemDataAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FlipViewItemDataAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: FlipViewItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&FlipViewItemDataAutomationPeer> for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &FlipViewItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: FlipViewItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&FlipViewItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &FlipViewItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: FlipViewItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&FlipViewItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &FlipViewItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for SelectorItemAutomationPeer { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for SelectorItemAutomationPeer { - fn from(value: &FlipViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for ItemAutomationPeer { - fn from(value: &FlipViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for AutomationPeer { - fn from(value: &FlipViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for super::super::DependencyObject { - fn from(value: &FlipViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlipViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for FlipViewItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for FlipViewItemDataAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct FlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -impl FlyoutPresenterAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::FlyoutPresenter>>(owner: Param0) -> ::windows::core::Result { - Self::IFlyoutPresenterAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IFlyoutPresenterAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for FlyoutPresenterAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FlyoutPresenterAutomationPeer;{a01840b4-5fca-456f-98ea-300eb40b585e})"); -} -unsafe impl ::windows::core::Interface for FlyoutPresenterAutomationPeer { - type Vtable = IFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa01840b4_5fca_456f_98ea_300eb40b585e); -} -impl ::windows::core::RuntimeName for FlyoutPresenterAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FlyoutPresenterAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: FlyoutPresenterAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FlyoutPresenterAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlyoutPresenterAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FlyoutPresenterAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: FlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &FlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: FlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for AutomationPeer { - fn from(value: &FlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for super::super::DependencyObject { - fn from(value: &FlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for FlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for FlyoutPresenterAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct FrameworkElementAutomationPeer(pub ::windows::core::IInspectable); -impl FrameworkElementAutomationPeer { - pub fn Owner(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FromElement<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(element: Param0) -> ::windows::core::Result { - Self::IFrameworkElementAutomationPeerStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) - }) - } - pub fn CreatePeerForElement<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(element: Param0) -> ::windows::core::Result { - Self::IFrameworkElementAutomationPeerStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) - }) - } - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(owner: Param0) -> ::windows::core::Result { - Self::IFrameworkElementAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IFrameworkElementAutomationPeerStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IFrameworkElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for FrameworkElementAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.FrameworkElementAutomationPeer;{b90ad781-bfeb-4451-bd47-9f3a63ebd24a})"); -} -unsafe impl ::windows::core::Interface for FrameworkElementAutomationPeer { - type Vtable = IFrameworkElementAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb90ad781_bfeb_4451_bd47_9f3a63ebd24a); -} -impl ::windows::core::RuntimeName for FrameworkElementAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.FrameworkElementAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: FrameworkElementAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&FrameworkElementAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FrameworkElementAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FrameworkElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FrameworkElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FrameworkElementAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&FrameworkElementAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FrameworkElementAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FrameworkElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FrameworkElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: FrameworkElementAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FrameworkElementAutomationPeer> for AutomationPeer { - fn from(value: &FrameworkElementAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FrameworkElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &FrameworkElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FrameworkElementAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FrameworkElementAutomationPeer> for super::super::DependencyObject { - fn from(value: &FrameworkElementAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FrameworkElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FrameworkElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for FrameworkElementAutomationPeer {} -unsafe impl ::core::marker::Sync for FrameworkElementAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct GridViewAutomationPeer(pub ::windows::core::IInspectable); -impl GridViewAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GridView>>(owner: Param0) -> ::windows::core::Result { - Self::IGridViewAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn DropEffect(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn DropEffects(&self) -> ::windows::core::Result<::windows::core::Array<::windows::core::HSTRING>> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), ::windows::core::Array::<::windows::core::HSTRING>::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IGridViewAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for GridViewAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GridViewAutomationPeer;{1c4401a4-d951-49ca-8f82-c7f3c60681b0})"); -} -unsafe impl ::windows::core::Interface for GridViewAutomationPeer { - type Vtable = IGridViewAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c4401a4_d951_49ca_8f82_c7f3c60681b0); -} -impl ::windows::core::RuntimeName for GridViewAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GridViewAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GridViewAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GridViewAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GridViewAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IDropTargetProvider { - type Error = ::windows::core::Error; - fn try_from(value: GridViewAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&GridViewAutomationPeer> for super::Provider::IDropTargetProvider { - type Error = ::windows::core::Error; - fn try_from(value: &GridViewAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for &GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: GridViewAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&GridViewAutomationPeer> for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: &GridViewAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: GridViewAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&GridViewAutomationPeer> for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: &GridViewAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for ListViewBaseAutomationPeer { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for ListViewBaseAutomationPeer { - fn from(value: &GridViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer> for &GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for SelectorAutomationPeer { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for SelectorAutomationPeer { - fn from(value: &GridViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &GridViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &GridViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for AutomationPeer { - fn from(value: &GridViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for super::super::DependencyObject { - fn from(value: &GridViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for GridViewAutomationPeer {} -unsafe impl ::core::marker::Sync for GridViewAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct GridViewHeaderItemAutomationPeer(pub ::windows::core::IInspectable); -impl GridViewHeaderItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GridViewHeaderItem>>(owner: Param0) -> ::windows::core::Result { - Self::IGridViewHeaderItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IGridViewHeaderItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for GridViewHeaderItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GridViewHeaderItemAutomationPeer;{e3dcef3a-e08a-48e7-b23a-2be5b66e474e})"); -} -unsafe impl ::windows::core::Interface for GridViewHeaderItemAutomationPeer { - type Vtable = IGridViewHeaderItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3dcef3a_e08a_48e7_b23a_2be5b66e474e); -} -impl ::windows::core::RuntimeName for GridViewHeaderItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GridViewHeaderItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for ListViewBaseHeaderItemAutomationPeer { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for ListViewBaseHeaderItemAutomationPeer { - fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewBaseHeaderItemAutomationPeer> for GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseHeaderItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewBaseHeaderItemAutomationPeer> for &GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseHeaderItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for AutomationPeer { - fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for GridViewHeaderItemAutomationPeer {} -unsafe impl ::core::marker::Sync for GridViewHeaderItemAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct GridViewItemAutomationPeer(pub ::windows::core::IInspectable); -impl GridViewItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GridViewItem>>(owner: Param0) -> ::windows::core::Result { - Self::IGridViewItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IGridViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for GridViewItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GridViewItemAutomationPeer;{93ef2d07-346c-4166-a4ba-bc6a181e7f33})"); -} -unsafe impl ::windows::core::Interface for GridViewItemAutomationPeer { - type Vtable = IGridViewItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93ef2d07_346c_4166_a4ba_bc6a181e7f33); -} -impl ::windows::core::RuntimeName for GridViewItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GridViewItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GridViewItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&GridViewItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GridViewItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&GridViewItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GridViewItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: GridViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &GridViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GridViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemAutomationPeer> for AutomationPeer { - fn from(value: &GridViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &GridViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for GridViewItemAutomationPeer {} -unsafe impl ::core::marker::Sync for GridViewItemAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct GridViewItemDataAutomationPeer(pub ::windows::core::IInspectable); -impl GridViewItemDataAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, GridViewAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { - Self::IGridViewItemDataAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IGridViewItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for GridViewItemDataAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GridViewItemDataAutomationPeer;{f3f4868f-29d4-4094-8c54-ea61a88294a4})"); -} -unsafe impl ::windows::core::Interface for GridViewItemDataAutomationPeer { - type Vtable = IGridViewItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3f4868f_29d4_4094_8c54_ea61a88294a4); -} -impl ::windows::core::RuntimeName for GridViewItemDataAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GridViewItemDataAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&GridViewItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GridViewItemDataAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&GridViewItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GridViewItemDataAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: GridViewItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&GridViewItemDataAutomationPeer> for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &GridViewItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: GridViewItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&GridViewItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &GridViewItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: GridViewItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&GridViewItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &GridViewItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for SelectorItemAutomationPeer { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemDataAutomationPeer> for SelectorItemAutomationPeer { - fn from(value: &GridViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemDataAutomationPeer> for ItemAutomationPeer { - fn from(value: &GridViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemDataAutomationPeer> for AutomationPeer { - fn from(value: &GridViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemDataAutomationPeer> for super::super::DependencyObject { - fn from(value: &GridViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for GridViewItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for GridViewItemDataAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct GroupItemAutomationPeer(pub ::windows::core::IInspectable); -impl GroupItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GroupItem>>(owner: Param0) -> ::windows::core::Result { - Self::IGroupItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IGroupItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for GroupItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.GroupItemAutomationPeer;{1914fe6d-0740-4236-9ee1-38cf19c1c388})"); -} -unsafe impl ::windows::core::Interface for GroupItemAutomationPeer { - type Vtable = IGroupItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1914fe6d_0740_4236_9ee1_38cf19c1c388); -} -impl ::windows::core::RuntimeName for GroupItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.GroupItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GroupItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&GroupItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GroupItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GroupItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&GroupItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GroupItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: GroupItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GroupItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &GroupItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GroupItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GroupItemAutomationPeer> for AutomationPeer { - fn from(value: &GroupItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GroupItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GroupItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &GroupItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GroupItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for GroupItemAutomationPeer {} -unsafe impl ::core::marker::Sync for GroupItemAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct HubAutomationPeer(pub ::windows::core::IInspectable); -impl HubAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Hub>>(owner: Param0) -> ::windows::core::Result { - Self::IHubAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IHubAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for HubAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.HubAutomationPeer;{4ddee056-4ebc-4620-a05d-903e3c9a4ead})"); -} -unsafe impl ::windows::core::Interface for HubAutomationPeer { - type Vtable = IHubAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ddee056_4ebc_4620_a05d_903e3c9a4ead); -} -impl ::windows::core::RuntimeName for HubAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.HubAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: HubAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&HubAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &HubAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: HubAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&HubAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &HubAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: HubAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HubAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &HubAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: HubAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HubAutomationPeer> for AutomationPeer { - fn from(value: &HubAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: HubAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HubAutomationPeer> for super::super::DependencyObject { - fn from(value: &HubAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &HubAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for HubAutomationPeer {} -unsafe impl ::core::marker::Sync for HubAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct HubSectionAutomationPeer(pub ::windows::core::IInspectable); -impl HubSectionAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::HubSection>>(owner: Param0) -> ::windows::core::Result { - Self::IHubSectionAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IHubSectionAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for HubSectionAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.HubSectionAutomationPeer;{16d91ff7-7431-4d82-83ce-cfa3192b0f18})"); -} -unsafe impl ::windows::core::Interface for HubSectionAutomationPeer { - type Vtable = IHubSectionAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x16d91ff7_7431_4d82_83ce_cfa3192b0f18); -} -impl ::windows::core::RuntimeName for HubSectionAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.HubSectionAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: HubSectionAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&HubSectionAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &HubSectionAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: HubSectionAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&HubSectionAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &HubSectionAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: HubSectionAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&HubSectionAutomationPeer> for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &HubSectionAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: HubSectionAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HubSectionAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &HubSectionAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: HubSectionAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HubSectionAutomationPeer> for AutomationPeer { - fn from(value: &HubSectionAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: HubSectionAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HubSectionAutomationPeer> for super::super::DependencyObject { - fn from(value: &HubSectionAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &HubSectionAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for HubSectionAutomationPeer {} -unsafe impl ::core::marker::Sync for HubSectionAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct HyperlinkButtonAutomationPeer(pub ::windows::core::IInspectable); -impl HyperlinkButtonAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Invoke(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::HyperlinkButton>>(owner: Param0) -> ::windows::core::Result { - Self::IHyperlinkButtonAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IHyperlinkButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for HyperlinkButtonAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.HyperlinkButtonAutomationPeer;{aa7afcb1-0edf-46d9-aa9e-0eb21d140097})"); -} -unsafe impl ::windows::core::Interface for HyperlinkButtonAutomationPeer { - type Vtable = IHyperlinkButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaa7afcb1_0edf_46d9_aa9e_0eb21d140097); -} -impl ::windows::core::RuntimeName for HyperlinkButtonAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.HyperlinkButtonAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &HyperlinkButtonAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &HyperlinkButtonAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: HyperlinkButtonAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&HyperlinkButtonAutomationPeer> for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: &HyperlinkButtonAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for ButtonBaseAutomationPeer { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &HyperlinkButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &HyperlinkButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for AutomationPeer { - fn from(value: &HyperlinkButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for super::super::DependencyObject { - fn from(value: &HyperlinkButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &HyperlinkButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for HyperlinkButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for HyperlinkButtonAutomationPeer {} -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarAutomationPeer { - type Vtable = IAppBarAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8b4acfeb_89fa_4f13_84be_35ca5b7c9590); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarAutomationPeerFactory { - type Vtable = IAppBarAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8360f4e2_e396_4517_af5d_f4cf34c54edf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarButtonAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarButtonAutomationPeer { - type Vtable = IAppBarButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x443262b2_4f6d_4b76_9d2e_3eff777e8864); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarButtonAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarButtonAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarButtonAutomationPeerFactory { - type Vtable = IAppBarButtonAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaef0342a_acb7_42dc_97e3_847071865fd6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarButtonAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarToggleButtonAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarToggleButtonAutomationPeer { - type Vtable = IAppBarToggleButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8464efad_9655_4aff_9550_63ae9ec8fe9c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarToggleButtonAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarToggleButtonAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarToggleButtonAutomationPeerFactory { - type Vtable = IAppBarToggleButtonAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd6f9139d_02c1_4221_9591_7d4efeb74701); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarToggleButtonAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutoSuggestBoxAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutoSuggestBoxAutomationPeer { - type Vtable = IAutoSuggestBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f32c302_f99b_491d_9726_a5e181643efa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutoSuggestBoxAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutoSuggestBoxAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutoSuggestBoxAutomationPeerFactory { - type Vtable = IAutoSuggestBoxAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x80046849_18e7_4475_b362_4bbd53d24562); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutoSuggestBoxAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeer { - type Vtable = IAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x35aac87a_62ee_4d3e_a24c_2bc8432d68b7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, patterninterface: PatternInterface, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, eventid: AutomationEvents) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, automationproperty: ::windows::core::RawPtr, oldvalue: ::windows::core::RawPtr, newvalue: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationControlType) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationOrientation) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, point: super::super::super::super::Foundation::Point, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationLiveSetting) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeer2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeer2 { - type Vtable = IAutomationPeer2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xea1f89c7_ebf5_4ab8_88f7_680d821dac61); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeer3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeer3 { - type Vtable = IAutomationPeer3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3cfb977_0084_41d7_a221_28158d3bc32c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, direction: AutomationNavigationDirection, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pointinwindowcoordinates: super::super::super::super::Foundation::Point, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, peer: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, structurechangetype: AutomationStructureChangeType, child: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeer4(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeer4 { - type Vtable = IAutomationPeer4_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x761ce752_73c1_4f44_be75_43c49ec0d4d5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer4_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationLandmarkType) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeer5(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeer5 { - type Vtable = IAutomationPeer5_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf632e1c6_0a3f_4574_9fef_cdc151765674); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer5_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeer6(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeer6 { - type Vtable = IAutomationPeer6_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcaf8608f_13ff_42fb_866d_22206434cc6b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer6_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeer7(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeer7 { - type Vtable = IAutomationPeer7_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x796b3287_e642_48ab_b223_5208b41da9d6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer7_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, activityid: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeer8(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeer8 { - type Vtable = IAutomationPeer8_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5c6a1fe6_9a55_4d7f_9498_cfe429e92da8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer8_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationHeadingLevel) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeer9(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeer9 { - type Vtable = IAutomationPeer9_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdf2e0265_1d74_57fa_8094_f81c2f626b8c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer9_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerAnnotation(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerAnnotation { - type Vtable = IAutomationPeerAnnotation_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0c456061_52cf_43fa_82f8_07f137351e5a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerAnnotation_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::AnnotationType) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::AnnotationType) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerAnnotationFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerAnnotationFactory { - type Vtable = IAutomationPeerAnnotationFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf59c439e_c65b_43cd_9009_03fc023363a7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerAnnotationFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, r#type: super::AnnotationType, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, r#type: super::AnnotationType, peer: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerAnnotationStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerAnnotationStatics { - type Vtable = IAutomationPeerAnnotationStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8809a87d_09b2_4d45_b78b_1d3b3b09f661); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerAnnotationStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerFactory { - type Vtable = IAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20c27545_a88b_43c8_bc24_cea9dafd04a3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides { - type Vtable = IAutomationPeerOverrides_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbea93e67_dbee_4f7b_af0d_a79aae5333bf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, patterninterface: PatternInterface, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationControlType) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationOrientation) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, point: super::super::super::super::Foundation::Point, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationLiveSetting) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides2 { - type Vtable = IAutomationPeerOverrides2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2603682a_9da6_4023_b496_496e5ef228d2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides3 { - type Vtable = IAutomationPeerOverrides3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb6f0c4ad_4d39_49e6_bb91_d924eefd8538); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, direction: AutomationNavigationDirection, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pointinwindowcoordinates: super::super::super::super::Foundation::Point, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides4(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides4 { - type Vtable = IAutomationPeerOverrides4_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb186cda2_5d46_4bcd_a811_269ad15b3aee); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides4_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationLandmarkType) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides5(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides5 { - type Vtable = IAutomationPeerOverrides5_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c847c85_781e_49f7_9fef_b9e14d014707); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides5_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides6(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides6 { - type Vtable = IAutomationPeerOverrides6_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe98babe7_f6ff_444c_9c0d_277eaf0ad9c0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides6_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides8(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides8 { - type Vtable = IAutomationPeerOverrides8_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0e1ebbd4_a003_4936_8175_f5457c07f0c6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides8_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationHeadingLevel) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides9(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides9 { - type Vtable = IAutomationPeerOverrides9_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3709e8b_091a_5db5_b896_ff78f01990c9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides9_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerProtected(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerProtected { - type Vtable = IAutomationPeerProtected_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf4b40e52_642f_4629_a54a_ea5d2349c448); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerProtected_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Automation_Provider")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, provider: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Provider"))] usize, - #[cfg(feature = "UI_Xaml_Automation_Provider")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, peer: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Provider"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerStatics { - type Vtable = IAutomationPeerStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x562f7fb0_a331_4a9c_9dec_bfb7586fffff); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, eventid: AutomationEvents, result__: *mut bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAutomationPeerStatics3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAutomationPeerStatics3 { - type Vtable = IAutomationPeerStatics3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x572c5714_7f87_4271_819f_6cf4c4d022d0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerStatics3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut RawElementProviderRuntimeId) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IButtonAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IButtonAutomationPeer { - type Vtable = IButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfb77efbe_39ec_4508_8ac3_51a1424027d7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IButtonAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IButtonAutomationPeerFactory { - type Vtable = IButtonAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3fdb9f49_f4ab_4780_8644_03376299a175); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IButtonBaseAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IButtonBaseAutomationPeer { - type Vtable = IButtonBaseAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa4f3b5b6_7585_4e0b_96d2_08cf6f28befa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBaseAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IButtonBaseAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IButtonBaseAutomationPeerFactory { - type Vtable = IButtonBaseAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8a04091e_e6b2_4c60_a759_c13ca45165ed); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBaseAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICalendarDatePickerAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICalendarDatePickerAutomationPeer { - type Vtable = ICalendarDatePickerAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40d8938e_db5e_4b03_beba_d10f62419787); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICalendarDatePickerAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICalendarDatePickerAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICalendarDatePickerAutomationPeerFactory { - type Vtable = ICalendarDatePickerAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xab705dd2_d293_45bf_9f19_26f7603a5e9b); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICalendarDatePickerAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICaptureElementAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICaptureElementAutomationPeer { - type Vtable = ICaptureElementAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdcc44ee0_fa45_45c6_8bb7_320d808f5958); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICaptureElementAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICaptureElementAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICaptureElementAutomationPeerFactory { - type Vtable = ICaptureElementAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b92ef48_85e9_4869_b175_8f7cf45a6d9f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICaptureElementAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICheckBoxAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICheckBoxAutomationPeer { - type Vtable = ICheckBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb15bc42_c0a9_46c6_ac24_b83de429c733); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICheckBoxAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICheckBoxAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICheckBoxAutomationPeerFactory { - type Vtable = ICheckBoxAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb75c775d_eb8f_44ef_a27c_e26ac7de8333); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICheckBoxAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorPickerSliderAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorPickerSliderAutomationPeer { - type Vtable = IColorPickerSliderAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa514215a_7293_4577_924c_47d4e0bf9b90); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSliderAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorPickerSliderAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorPickerSliderAutomationPeerFactory { - type Vtable = IColorPickerSliderAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a55c77e_9dd6_45a3_9042_b40200fea1a9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSliderAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorSpectrumAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorSpectrumAutomationPeer { - type Vtable = IColorSpectrumAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15d5ba03_010d_4ff7_9087_f4dd09f831b7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrumAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorSpectrumAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorSpectrumAutomationPeerFactory { - type Vtable = IColorSpectrumAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0ac400e1_b743_4496_837a_8889e6ac6497); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrumAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IComboBoxAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IComboBoxAutomationPeer { - type Vtable = IComboBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7eb40d0b_75c5_4263_ba6a_d4a54fb0f239); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IComboBoxAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IComboBoxAutomationPeerFactory { - type Vtable = IComboBoxAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x098e5b0d_1b90_40b9_9be3_b23267eb13cf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IComboBoxItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IComboBoxItemAutomationPeer { - type Vtable = IComboBoxItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x12ddc76e_9552_446a_82ee_938cc371800f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IComboBoxItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IComboBoxItemAutomationPeerFactory { - type Vtable = IComboBoxItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x134ac7fc_397a_403f_a6ec_1ce8beda15e5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IComboBoxItemDataAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IComboBoxItemDataAutomationPeer { - type Vtable = IComboBoxItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4fef6df2_289c_4c04_831b_5a668c6d7104); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxItemDataAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IComboBoxItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IComboBoxItemDataAutomationPeerFactory { - type Vtable = IComboBoxItemDataAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14a8d4f6_469a_41ba_9d93_44a1a55da872); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxItemDataAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IDatePickerAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IDatePickerAutomationPeer { - type Vtable = IDatePickerAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd07d357f_a0b9_45dc_991a_76c505e7d0f5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDatePickerAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IDatePickerAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IDatePickerAutomationPeerFactory { - type Vtable = IDatePickerAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe5667d19_9157_4436_9f4d_7fb99174b48e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDatePickerAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IDatePickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IDatePickerFlyoutPresenterAutomationPeer { - type Vtable = IDatePickerFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x752aed38_c2bf_4880_82b2_a6c05e90c135); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDatePickerFlyoutPresenterAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlipViewAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlipViewAutomationPeer { - type Vtable = IFlipViewAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8ec0353a_4284_4b00_aef8_a2688ea5e3c4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlipViewAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlipViewAutomationPeerFactory { - type Vtable = IFlipViewAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4395ab0d_8d83_483c_88eb_e2617b0d293f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlipViewItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlipViewItemAutomationPeer { - type Vtable = IFlipViewItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc83034de_fa08_4bd3_aeb2_d2e5bfa04df9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlipViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlipViewItemAutomationPeerFactory { - type Vtable = IFlipViewItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69109356_d0e5_4c10_a09c_ad0bf1b0cb01); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlipViewItemDataAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlipViewItemDataAutomationPeer { - type Vtable = IFlipViewItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb0986175_00bc_4118_8a6f_16ee9c15d968); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewItemDataAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlipViewItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlipViewItemDataAutomationPeerFactory { - type Vtable = IFlipViewItemDataAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c864393_0aea_4e78_bc11_b775cac4114c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewItemDataAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutPresenterAutomationPeer { - type Vtable = IFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa01840b4_5fca_456f_98ea_300eb40b585e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutPresenterAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutPresenterAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutPresenterAutomationPeerFactory { - type Vtable = IFlyoutPresenterAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf350155f_8924_44c0_ba44_653fe79f1efb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutPresenterAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFrameworkElementAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFrameworkElementAutomationPeer { - type Vtable = IFrameworkElementAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb90ad781_bfeb_4451_bd47_9f3a63ebd24a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFrameworkElementAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFrameworkElementAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFrameworkElementAutomationPeerFactory { - type Vtable = IFrameworkElementAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0db9b8bc_b812_48e3_af1f_dbc57600c325); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFrameworkElementAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFrameworkElementAutomationPeerStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFrameworkElementAutomationPeerStatics { - type Vtable = IFrameworkElementAutomationPeerStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9c0b997_2820_44a1_a5a8_9b801edc269e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFrameworkElementAutomationPeerStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewAutomationPeer { - type Vtable = IGridViewAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c4401a4_d951_49ca_8f82_c7f3c60681b0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewAutomationPeerFactory { - type Vtable = IGridViewAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8aca59dd_22a7_4800_894b_c1f485f38953); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewHeaderItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewHeaderItemAutomationPeer { - type Vtable = IGridViewHeaderItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3dcef3a_e08a_48e7_b23a_2be5b66e474e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewHeaderItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewHeaderItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewHeaderItemAutomationPeerFactory { - type Vtable = IGridViewHeaderItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c80b4d2_ffc2_4157_88dd_59cd92e39715); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewHeaderItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewItemAutomationPeer { - type Vtable = IGridViewItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93ef2d07_346c_4166_a4ba_bc6a181e7f33); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewItemAutomationPeerFactory { - type Vtable = IGridViewItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfafec376_f22e_466d_913c_ae24ccdb160f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewItemDataAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewItemDataAutomationPeer { - type Vtable = IGridViewItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3f4868f_29d4_4094_8c54_ea61a88294a4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemDataAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewItemDataAutomationPeerFactory { - type Vtable = IGridViewItemDataAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa65e7a88_770d_402c_996f_67506af2a4af); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemDataAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGroupItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGroupItemAutomationPeer { - type Vtable = IGroupItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1914fe6d_0740_4236_9ee1_38cf19c1c388); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGroupItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGroupItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGroupItemAutomationPeerFactory { - type Vtable = IGroupItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56a64567_f21c_4c90_b379_15a27c7f8409); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGroupItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IHubAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IHubAutomationPeer { - type Vtable = IHubAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ddee056_4ebc_4620_a05d_903e3c9a4ead); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHubAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IHubAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IHubAutomationPeerFactory { - type Vtable = IHubAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc762d43f_79dd_43ee_8777_8d08b39aa065); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHubAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IHubSectionAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IHubSectionAutomationPeer { - type Vtable = IHubSectionAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x16d91ff7_7431_4d82_83ce_cfa3192b0f18); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHubSectionAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IHubSectionAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IHubSectionAutomationPeerFactory { - type Vtable = IHubSectionAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc68e27e8_17ec_4329_91ae_2d0b2339d498); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHubSectionAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IHyperlinkButtonAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IHyperlinkButtonAutomationPeer { - type Vtable = IHyperlinkButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaa7afcb1_0edf_46d9_aa9e_0eb21d140097); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHyperlinkButtonAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IHyperlinkButtonAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IHyperlinkButtonAutomationPeerFactory { - type Vtable = IHyperlinkButtonAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x59bc1661_c182_49af_9526_44b88e628455); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHyperlinkButtonAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IImageAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IImageAutomationPeer { - type Vtable = IImageAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b0bbf8c_60a2_48bf_ab2c_1a52a451d2d4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IImageAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IImageAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IImageAutomationPeerFactory { - type Vtable = IImageAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90304003_687d_47bf_b3a2_4babcad8ef50); -} -#[repr(C)] -#[doc(hidden)] -pub struct IImageAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IInkToolbarAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IInkToolbarAutomationPeer { - type Vtable = IInkToolbarAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x123baaa4_f2e8_4bcb_9382_5dfdd11fe45f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IInkToolbarAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IItemAutomationPeer { - type Vtable = IItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x953c34f6_3b31_47a7_b3bf_25d3ae99c317); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IItemAutomationPeerFactory { - type Vtable = IItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29065073_de3d_4d3f_97b4_4d6f9d53444d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IItemsControlAutomationPeer { - type Vtable = IItemsControlAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96e76bf1_37f7_4088_925d_65268e83e34d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeer2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IItemsControlAutomationPeer2 { - type Vtable = IItemsControlAutomationPeer2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc48d8917_95a8_47b8_a517_bf891a6c039b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeer2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IItemsControlAutomationPeerFactory { - type Vtable = IItemsControlAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4038a259_2e1a_49ca_a533_c64f181577e6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeerOverrides2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IItemsControlAutomationPeerOverrides2 { - type Vtable = IItemsControlAutomationPeerOverrides2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x361dc0e8_b56f_45e9_80fe_10a0fb0fe177); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeerOverrides2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListBoxAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListBoxAutomationPeer { - type Vtable = IListBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8cd0d608_b402_4a6e_bd9a_343f8845eb32); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListBoxAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListBoxAutomationPeerFactory { - type Vtable = IListBoxAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe2362185_7df6_49f7_8abc_4c33f1a3d46e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListBoxItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListBoxItemAutomationPeer { - type Vtable = IListBoxItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1bc6e1c6_2997_42df_99eb_92bc1dd149fb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListBoxItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListBoxItemAutomationPeerFactory { - type Vtable = IListBoxItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x509f9dd8_b0aa_443f_a110_41209af44f1c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListBoxItemDataAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListBoxItemDataAutomationPeer { - type Vtable = IListBoxItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfd7d5fee_fde0_482a_8084_dcebba5b9806); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxItemDataAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListBoxItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListBoxItemDataAutomationPeerFactory { - type Vtable = IListBoxItemDataAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd7924e16_bd8d_4662_a995_20ff9a056093); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxItemDataAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListPickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListPickerFlyoutPresenterAutomationPeer { - type Vtable = IListPickerFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56dfdc58_2395_4060_8047_8ea463698a24); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListPickerFlyoutPresenterAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewAutomationPeer { - type Vtable = IListViewAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73cecc87_c0dc_4260_9148_75e9864a7230); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewAutomationPeerFactory { - type Vtable = IListViewAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x65f39174_eaa2_4e44_8be6_4cca28cd0288); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewBaseAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewBaseAutomationPeer { - type Vtable = IListViewBaseAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x87ec7649_b83d_4e55_9afd_bd835e748f5c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewBaseAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewBaseAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewBaseAutomationPeerFactory { - type Vtable = IListViewBaseAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x70d3c2be_8950_4647_9362_fd002f8ff82e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewBaseAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewBaseHeaderItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewBaseHeaderItemAutomationPeer { - type Vtable = IListViewBaseHeaderItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7cb8b732_c1f0_4a3c_bc14_85dd48dedb85); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewBaseHeaderItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewBaseHeaderItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewBaseHeaderItemAutomationPeerFactory { - type Vtable = IListViewBaseHeaderItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40ec995f_d631_4004_832e_6d8643e51561); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewBaseHeaderItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewHeaderItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewHeaderItemAutomationPeer { - type Vtable = IListViewHeaderItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ab1e4b_ad61_4c88_ba45_0f3a8d061f8f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewHeaderItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewHeaderItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewHeaderItemAutomationPeerFactory { - type Vtable = IListViewHeaderItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x07668694_2ca5_4be4_a8b9_592d48f76087); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewHeaderItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemAutomationPeer { - type Vtable = IListViewItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xca114e70_a16d_4d09_a1cf_1856ef98a9ec); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemAutomationPeerFactory { - type Vtable = IListViewItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc47dfbc0_facc_4024_a73b_17ec4e662654); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemDataAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemDataAutomationPeer { - type Vtable = IListViewItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15a8d7fd_d7a5_4a6c_963c_6f7ce464671a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemDataAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemDataAutomationPeerFactory { - type Vtable = IListViewItemDataAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0db12bb_d715_4523_acc0_1e1072d8e32b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemDataAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILoopingSelectorAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILoopingSelectorAutomationPeer { - type Vtable = ILoopingSelectorAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x50b406ca_bae9_4816_8a3a_0cb4f96478a2); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILoopingSelectorItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILoopingSelectorItemAutomationPeer { - type Vtable = ILoopingSelectorItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3fa68bf_04cf_4f4c_8d3e_4780a19d4788); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILoopingSelectorItemDataAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILoopingSelectorItemDataAutomationPeer { - type Vtable = ILoopingSelectorItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef567e32_7cd2_4d32_9590_1f588d5ef38d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorItemDataAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMapControlAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMapControlAutomationPeer { - type Vtable = IMapControlAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x425beee4_f2e8_4bcb_9382_5dfdd11fe45f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMediaElementAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMediaElementAutomationPeer { - type Vtable = IMediaElementAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xba0b9fc2_a6e2_41a5_b17a_d1594613efba); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaElementAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMediaElementAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMediaElementAutomationPeerFactory { - type Vtable = IMediaElementAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb2ad3b28_7575_4173_9bc7_80367a164ed2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaElementAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMediaPlayerElementAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMediaPlayerElementAutomationPeer { - type Vtable = IMediaPlayerElementAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02bed209_3f65_4fdd_b5ca_c4750d4e6ea4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaPlayerElementAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMediaPlayerElementAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMediaPlayerElementAutomationPeerFactory { - type Vtable = IMediaPlayerElementAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x08848077_82af_4d19_b170_282a9e0e7f37); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaPlayerElementAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMediaTransportControlsAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMediaTransportControlsAutomationPeer { - type Vtable = IMediaTransportControlsAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa3ad8d93_79f8_4958_a3c8_980defb83d15); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaTransportControlsAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMediaTransportControlsAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMediaTransportControlsAutomationPeerFactory { - type Vtable = IMediaTransportControlsAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf41cb003_e103_4ab0_812a_a08fbdb570ce); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaTransportControlsAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuBarAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuBarAutomationPeer { - type Vtable = IMenuBarAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4b6adcf1_f274_5592_85a8_7b099e99b320); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuBarAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuBarAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuBarAutomationPeerFactory { - type Vtable = IMenuBarAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a094871_4a9b_5a0b_9fda_7bc3ae957c53); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuBarAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuBarItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuBarItemAutomationPeer { - type Vtable = IMenuBarItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0fce49b4_cff5_5c4b_98ee_e75fdddf799a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuBarItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuBarItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuBarItemAutomationPeerFactory { - type Vtable = IMenuBarItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9c77746_130f_5b19_83a6_61db584613aa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuBarItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuFlyoutItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuFlyoutItemAutomationPeer { - type Vtable = IMenuFlyoutItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1fc19462_21df_456e_aa11_8fac6b4b2af6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuFlyoutItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuFlyoutItemAutomationPeerFactory { - type Vtable = IMenuFlyoutItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd08bfcb8_20d1_45d8_a2c2_2f130df714e0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuFlyoutPresenterAutomationPeer { - type Vtable = IMenuFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe244a871_fcbb_48fc_8a93_41ea134b53ce); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutPresenterAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuFlyoutPresenterAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuFlyoutPresenterAutomationPeerFactory { - type Vtable = IMenuFlyoutPresenterAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x07b5172d_761d_452b_9e6d_fa2a8be0ad26); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutPresenterAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct INavigationViewItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for INavigationViewItemAutomationPeer { - type Vtable = INavigationViewItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x309847a5_9971_4d8d_a81c_085c7086a1b9); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct INavigationViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for INavigationViewItemAutomationPeerFactory { - type Vtable = INavigationViewItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0bc2835d_aa38_4f97_9664_e6fc821d81ed); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPasswordBoxAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPasswordBoxAutomationPeer { - type Vtable = IPasswordBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x684f065e_3df3_4b9f_82ad_8819db3b218a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPasswordBoxAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPasswordBoxAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPasswordBoxAutomationPeerFactory { - type Vtable = IPasswordBoxAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xac3d7ede_dca4_481c_b520_4a9b3f3b179c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPasswordBoxAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPersonPictureAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPersonPictureAutomationPeer { - type Vtable = IPersonPictureAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x27156d4c_a66f_4aaf_8286_4f796d30628c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPersonPictureAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPersonPictureAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPersonPictureAutomationPeerFactory { - type Vtable = IPersonPictureAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa95f1f6d_2524_44a4_97fd_1181130100ad); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPersonPictureAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPickerFlyoutPresenterAutomationPeer { - type Vtable = IPickerFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x28414bf7_8382_4eae_93c1_d6f035aa8155); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutPresenterAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotAutomationPeer { - type Vtable = IPivotAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe715a8f8_3b9d_402c_81e2_6e912ef58981); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotAutomationPeerFactory { - type Vtable = IPivotAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3efe0f94_0c91_4341_b9ac_1b56b4e6b84f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotItemAutomationPeer { - type Vtable = IPivotItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a4241ad_5d55_4d27_b40f_2d37506fbe78); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotItemAutomationPeerFactory { - type Vtable = IPivotItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf2810471_183f_416b_b41a_1e5a958a91f4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotItemDataAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotItemDataAutomationPeer { - type Vtable = IPivotItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa2a3b788_ea1d_48b7_88ee_f08b6aa07fee); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotItemDataAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotItemDataAutomationPeerFactory { - type Vtable = IPivotItemDataAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x517a2480_d3b6_412e_82b6_94a0a84c13b0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotItemDataAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IProgressBarAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IProgressBarAutomationPeer { - type Vtable = IProgressBarAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93f48f86_d840_4fb6_ac2f_5f779b854b0d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressBarAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IProgressBarAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IProgressBarAutomationPeerFactory { - type Vtable = IProgressBarAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x364679ab_b80f_41b4_8eea_2f5251bc739c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressBarAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IProgressRingAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IProgressRingAutomationPeer { - type Vtable = IProgressRingAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbc305eee_39d3_4eeb_ac33_2394de123e2e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressRingAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IProgressRingAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IProgressRingAutomationPeerFactory { - type Vtable = IProgressRingAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3db204b_157e_40bc_9593_55bc5c71a4f6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressRingAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRadioButtonAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRadioButtonAutomationPeer { - type Vtable = IRadioButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e6a5ed8_0b30_4743_b102_dcdf548e3131); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRadioButtonAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRadioButtonAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRadioButtonAutomationPeerFactory { - type Vtable = IRadioButtonAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4940c4fd_3d88_49ca_8f31_924187af0bfe); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRadioButtonAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRangeBaseAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRangeBaseAutomationPeer { - type Vtable = IRangeBaseAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe454b549_4b2c_42ad_b04b_d35947d1ee50); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRangeBaseAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRangeBaseAutomationPeerFactory { - type Vtable = IRangeBaseAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x827c7601_3078_4479_95ea_91374ca06207); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRatingControlAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRatingControlAutomationPeer { - type Vtable = IRatingControlAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d14349a_9963_4a47_823c_f457cb3209d5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRatingControlAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRatingControlAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRatingControlAutomationPeerFactory { - type Vtable = IRatingControlAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf179f272_9846_4632_8b9c_be6fa8d3c9bb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRatingControlAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRepeatButtonAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRepeatButtonAutomationPeer { - type Vtable = IRepeatButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29e41ad5_a8ac_4e8a_83d8_09e37e054257); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRepeatButtonAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRepeatButtonAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRepeatButtonAutomationPeerFactory { - type Vtable = IRepeatButtonAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a6ff9d4_575e_4e60_bdd6_ec14419b4ff6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRepeatButtonAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRichEditBoxAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRichEditBoxAutomationPeer { - type Vtable = IRichEditBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69f5c04_16ee_467a_a833_c3da8458ad64); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichEditBoxAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRichEditBoxAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRichEditBoxAutomationPeerFactory { - type Vtable = IRichEditBoxAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x752c8399_d296_4d87_9020_a4750e885b3c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichEditBoxAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRichTextBlockAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRichTextBlockAutomationPeer { - type Vtable = IRichTextBlockAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93a01a9c_9609_41fa_82f3_909c09f49a72); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichTextBlockAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRichTextBlockAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRichTextBlockAutomationPeerFactory { - type Vtable = IRichTextBlockAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2038ae61_1389_467a_aed6_37334da9622b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichTextBlockAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRichTextBlockOverflowAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRichTextBlockOverflowAutomationPeer { - type Vtable = IRichTextBlockOverflowAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c9a409a_2736_437b_ab36_a16a202f105d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichTextBlockOverflowAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRichTextBlockOverflowAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRichTextBlockOverflowAutomationPeerFactory { - type Vtable = IRichTextBlockOverflowAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbd5eb663_2c14_4665_adef_f2b033947beb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichTextBlockOverflowAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IScrollBarAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IScrollBarAutomationPeer { - type Vtable = IScrollBarAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69e0c369_bbe7_41f2_87ca_aad813fe550e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollBarAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IScrollBarAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IScrollBarAutomationPeerFactory { - type Vtable = IScrollBarAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe1302110_afeb_4595_8e3d_edc0844a2b21); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollBarAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IScrollViewerAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IScrollViewerAutomationPeer { - type Vtable = IScrollViewerAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd985f259_1b09_4e88_88fd_421750dc6b45); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollViewerAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IScrollViewerAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IScrollViewerAutomationPeerFactory { - type Vtable = IScrollViewerAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x270dff7d_d96d_48f9_a36a_c252aa9c4670); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollViewerAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISearchBoxAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISearchBoxAutomationPeer { - type Vtable = ISearchBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x854011a4_18a6_4f30_939b_8871afa3f5e9); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISearchBoxAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISearchBoxAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISearchBoxAutomationPeerFactory { - type Vtable = ISearchBoxAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb3c01430_7faa_41bb_8e91_7c761c5267f1); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISearchBoxAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelectorAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelectorAutomationPeer { - type Vtable = ISelectorAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x162ac829_7115_43ec_b383_a7b71644069d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelectorAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelectorAutomationPeerFactory { - type Vtable = ISelectorAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b525646_829b_4dcc_bd52_5a8d0399387a); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelectorItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelectorItemAutomationPeer { - type Vtable = ISelectorItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae8b3477_860a_45bb_bf7c_e1b27419d1dd); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelectorItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelectorItemAutomationPeerFactory { - type Vtable = ISelectorItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x66d7edfb_786d_4362_a964_ebfb21776c30); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISemanticZoomAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISemanticZoomAutomationPeer { - type Vtable = ISemanticZoomAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c2fac6c_a977_47fc_b44e_2754c0b2bea9); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISemanticZoomAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISemanticZoomAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISemanticZoomAutomationPeerFactory { - type Vtable = ISemanticZoomAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf518d44d_a493_4496_b077_9674c7f4c5fa); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISemanticZoomAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISettingsFlyoutAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISettingsFlyoutAutomationPeer { - type Vtable = ISettingsFlyoutAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0de0cdb_30cf_47a6_a5eb_9c77f0b0d6dd); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISettingsFlyoutAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISettingsFlyoutAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISettingsFlyoutAutomationPeerFactory { - type Vtable = ISettingsFlyoutAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf94762bd_8a14_40e4_94a7_3f33c922e945); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISettingsFlyoutAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISliderAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISliderAutomationPeer { - type Vtable = ISliderAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xec30015a_d611_46d0_ae4f_6ecf27dfbaa5); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISliderAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISliderAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISliderAutomationPeerFactory { - type Vtable = ISliderAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x971b8056_9a7a_4df9_95fa_6f5c04c91cac); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISliderAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITextBlockAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITextBlockAutomationPeer { - type Vtable = ITextBlockAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbe2057f5_6715_4e69_a050_92bd0ce232a9); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextBlockAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITextBlockAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITextBlockAutomationPeerFactory { - type Vtable = ITextBlockAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x76bf924b_7ca0_4b01_bc5c_a8cf4d3691de); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextBlockAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITextBoxAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITextBoxAutomationPeer { - type Vtable = ITextBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3a4f1ca0_5e5d_4d26_9067_e740bf657a9f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextBoxAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITextBoxAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITextBoxAutomationPeerFactory { - type Vtable = ITextBoxAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x01f0c067_966b_4130_b872_469e42bd4a7f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextBoxAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IThumbAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IThumbAutomationPeer { - type Vtable = IThumbAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdc2949b5_b45e_4d6d_892f_d9422c950efb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IThumbAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IThumbAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IThumbAutomationPeerFactory { - type Vtable = IThumbAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x970743ff_af41_4600_b55d_26d43df860e1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IThumbAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITimePickerAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITimePickerAutomationPeer { - type Vtable = ITimePickerAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa43d44ef_3285_4df7_b4a4_e4cdf36a3a17); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITimePickerAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITimePickerAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITimePickerAutomationPeerFactory { - type Vtable = ITimePickerAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x978f6671_47f8_40a7_9e21_68128b16b4fd); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITimePickerAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITimePickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITimePickerFlyoutPresenterAutomationPeer { - type Vtable = ITimePickerFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda93ee27_82f1_4701_8706_be297bf06043); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITimePickerFlyoutPresenterAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleButtonAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleButtonAutomationPeer { - type Vtable = IToggleButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62dbe6c5_bc0a_45bb_bf77_ea0f1502891f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleButtonAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleButtonAutomationPeerFactory { - type Vtable = IToggleButtonAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9218cc4_ad4b_4d03_a6a4_7d59e6360004); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleMenuFlyoutItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleMenuFlyoutItemAutomationPeer { - type Vtable = IToggleMenuFlyoutItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6b57eafe_6af1_4903_8373_3437bf352345); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleMenuFlyoutItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleMenuFlyoutItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleMenuFlyoutItemAutomationPeerFactory { - type Vtable = IToggleMenuFlyoutItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94364b77_8f6c_4837_aae3_94d010d8d162); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleMenuFlyoutItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleSwitchAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleSwitchAutomationPeer { - type Vtable = IToggleSwitchAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc011f174_e89e_4790_bf9a_78ebb5f59e9f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleSwitchAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleSwitchAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleSwitchAutomationPeerFactory { - type Vtable = IToggleSwitchAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x31f933e3_fef8_4419_9df5_d9ef7196ea34); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleSwitchAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITreeViewItemAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITreeViewItemAutomationPeer { - type Vtable = ITreeViewItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2331d648_b617_437f_920c_71d450503e65); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITreeViewItemAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITreeViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITreeViewItemAutomationPeerFactory { - type Vtable = ITreeViewItemAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73d388bf_1d01_4159_82c0_2b2996dbfdce); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITreeViewItemAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITreeViewListAutomationPeer(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITreeViewListAutomationPeer { - type Vtable = ITreeViewListAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71c1b5bc_bb29_4479_a8a8_606be6b823ae); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITreeViewListAutomationPeer_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITreeViewListAutomationPeerFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITreeViewListAutomationPeerFactory { - type Vtable = ITreeViewListAutomationPeerFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00f597e2_f811_475a_bfe6_290fe707fa88); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITreeViewListAutomationPeerFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] usize, -); -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ImageAutomationPeer(pub ::windows::core::IInspectable); -impl ImageAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Image>>(owner: Param0) -> ::windows::core::Result { - Self::IImageAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IImageAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ImageAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ImageAutomationPeer;{9b0bbf8c-60a2-48bf-ab2c-1a52a451d2d4})"); -} -unsafe impl ::windows::core::Interface for ImageAutomationPeer { - type Vtable = IImageAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b0bbf8c_60a2_48bf_ab2c_1a52a451d2d4); -} -impl ::windows::core::RuntimeName for ImageAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ImageAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ImageAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ImageAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ImageAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ImageAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ImageAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ImageAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ImageAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ImageAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ImageAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ImageAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ImageAutomationPeer> for AutomationPeer { - fn from(value: &ImageAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ImageAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ImageAutomationPeer> for super::super::DependencyObject { - fn from(value: &ImageAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ImageAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ImageAutomationPeer {} -unsafe impl ::core::marker::Sync for ImageAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct InkToolbarAutomationPeer(pub ::windows::core::IInspectable); -impl InkToolbarAutomationPeer { - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for InkToolbarAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.InkToolbarAutomationPeer;{123baaa4-f2e8-4bcb-9382-5dfdd11fe45f})"); -} -unsafe impl ::windows::core::Interface for InkToolbarAutomationPeer { - type Vtable = IInkToolbarAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x123baaa4_f2e8_4bcb_9382_5dfdd11fe45f); -} -impl ::windows::core::RuntimeName for InkToolbarAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.InkToolbarAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: InkToolbarAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&InkToolbarAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &InkToolbarAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: InkToolbarAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&InkToolbarAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &InkToolbarAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: InkToolbarAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&InkToolbarAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &InkToolbarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: InkToolbarAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&InkToolbarAutomationPeer> for AutomationPeer { - fn from(value: &InkToolbarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: InkToolbarAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&InkToolbarAutomationPeer> for super::super::DependencyObject { - fn from(value: &InkToolbarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &InkToolbarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for InkToolbarAutomationPeer {} -unsafe impl ::core::marker::Sync for InkToolbarAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ItemAutomationPeer(pub ::windows::core::IInspectable); -impl ItemAutomationPeer { - pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ItemsControlAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { - Self::IItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ItemAutomationPeer;{953c34f6-3b31-47a7-b3bf-25d3ae99c317})"); -} -unsafe impl ::windows::core::Interface for ItemAutomationPeer { - type Vtable = IItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x953c34f6_3b31_47a7_b3bf_25d3ae99c317); -} -impl ::windows::core::RuntimeName for ItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: ItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ItemAutomationPeer> for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ItemAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ItemAutomationPeer> for AutomationPeer { - fn from(value: &ItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &ItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ItemAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ItemsControlAutomationPeer(pub ::windows::core::IInspectable); -impl ItemsControlAutomationPeer { - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ItemsControl>>(owner: Param0) -> ::windows::core::Result { - Self::IItemsControlAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IItemsControlAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ItemsControlAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ItemsControlAutomationPeer;{96e76bf1-37f7-4088-925d-65268e83e34d})"); -} -unsafe impl ::windows::core::Interface for ItemsControlAutomationPeer { - type Vtable = IItemsControlAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96e76bf1_37f7_4088_925d_65268e83e34d); -} -impl ::windows::core::RuntimeName for ItemsControlAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ItemsControlAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ItemsControlAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ItemsControlAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ItemsControlAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ItemsControlAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ItemsControlAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ItemsControlAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: ItemsControlAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ItemsControlAutomationPeer> for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ItemsControlAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ItemsControlAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ItemsControlAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ItemsControlAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ItemsControlAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ItemsControlAutomationPeer> for AutomationPeer { - fn from(value: &ItemsControlAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ItemsControlAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ItemsControlAutomationPeer> for super::super::DependencyObject { - fn from(value: &ItemsControlAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ItemsControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ItemsControlAutomationPeer {} -unsafe impl ::core::marker::Sync for ItemsControlAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListBoxAutomationPeer(pub ::windows::core::IInspectable); -impl ListBoxAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListBox>>(owner: Param0) -> ::windows::core::Result { - Self::IListBoxAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IListBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ListBoxAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListBoxAutomationPeer;{8cd0d608-b402-4a6e-bd9a-343f8845eb32})"); -} -unsafe impl ::windows::core::Interface for ListBoxAutomationPeer { - type Vtable = IListBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8cd0d608_b402_4a6e_bd9a_343f8845eb32); -} -impl ::windows::core::RuntimeName for ListBoxAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListBoxAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListBoxAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListBoxAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListBoxAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListBoxAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListBoxAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListBoxAutomationPeer> for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListBoxAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListBoxAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListBoxAutomationPeer> for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListBoxAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for SelectorAutomationPeer { - fn from(value: ListBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxAutomationPeer> for SelectorAutomationPeer { - fn from(value: &ListBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: ListBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &ListBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ListBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxAutomationPeer> for AutomationPeer { - fn from(value: &ListBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for ListBoxAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListBoxItemAutomationPeer(pub ::windows::core::IInspectable); -impl ListBoxItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListBoxItem>>(owner: Param0) -> ::windows::core::Result { - Self::IListBoxItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IListBoxItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ListBoxItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListBoxItemAutomationPeer;{1bc6e1c6-2997-42df-99eb-92bc1dd149fb})"); -} -unsafe impl ::windows::core::Interface for ListBoxItemAutomationPeer { - type Vtable = IListBoxItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1bc6e1c6_2997_42df_99eb_92bc1dd149fb); -} -impl ::windows::core::RuntimeName for ListBoxItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListBoxItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListBoxItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListBoxItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListBoxItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListBoxItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListBoxItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListBoxItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListBoxItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ListBoxItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListBoxItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxItemAutomationPeer> for AutomationPeer { - fn from(value: &ListBoxItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListBoxItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListBoxItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListBoxItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ListBoxItemAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListBoxItemDataAutomationPeer(pub ::windows::core::IInspectable); -impl ListBoxItemDataAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ListBoxAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { - Self::IListBoxItemDataAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IListBoxItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ListBoxItemDataAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListBoxItemDataAutomationPeer;{fd7d5fee-fde0-482a-8084-dcebba5b9806})"); -} -unsafe impl ::windows::core::Interface for ListBoxItemDataAutomationPeer { - type Vtable = IListBoxItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfd7d5fee_fde0_482a_8084_dcebba5b9806); -} -impl ::windows::core::RuntimeName for ListBoxItemDataAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListBoxItemDataAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListBoxItemDataAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListBoxItemDataAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListBoxItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListBoxItemDataAutomationPeer> for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListBoxItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListBoxItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListBoxItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListBoxItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListBoxItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListBoxItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListBoxItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for SelectorItemAutomationPeer { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for SelectorItemAutomationPeer { - fn from(value: &ListBoxItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for ItemAutomationPeer { - fn from(value: &ListBoxItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for AutomationPeer { - fn from(value: &ListBoxItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListBoxItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListBoxItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for ListBoxItemDataAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListPickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -impl ListPickerFlyoutPresenterAutomationPeer { - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for ListPickerFlyoutPresenterAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListPickerFlyoutPresenterAutomationPeer;{56dfdc58-2395-4060-8047-8ea463698a24})"); -} -unsafe impl ::windows::core::Interface for ListPickerFlyoutPresenterAutomationPeer { - type Vtable = IListPickerFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56dfdc58_2395_4060_8047_8ea463698a24); -} -impl ::windows::core::RuntimeName for ListPickerFlyoutPresenterAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListPickerFlyoutPresenterAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for AutomationPeer { - fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListPickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListPickerFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for ListPickerFlyoutPresenterAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListViewAutomationPeer(pub ::windows::core::IInspectable); -impl ListViewAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListView>>(owner: Param0) -> ::windows::core::Result { - Self::IListViewAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn DropEffect(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn DropEffects(&self) -> ::windows::core::Result<::windows::core::Array<::windows::core::HSTRING>> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), ::windows::core::Array::<::windows::core::HSTRING>::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IListViewAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ListViewAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewAutomationPeer;{73cecc87-c0dc-4260-9148-75e9864a7230})"); -} -unsafe impl ::windows::core::Interface for ListViewAutomationPeer { - type Vtable = IListViewAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73cecc87_c0dc_4260_9148_75e9864a7230); -} -impl ::windows::core::RuntimeName for ListViewAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListViewAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IDropTargetProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListViewAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListViewAutomationPeer> for super::Provider::IDropTargetProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for &ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListViewAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListViewAutomationPeer> for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListViewAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListViewAutomationPeer> for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for ListViewBaseAutomationPeer { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for ListViewBaseAutomationPeer { - fn from(value: &ListViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer> for &ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for SelectorAutomationPeer { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for SelectorAutomationPeer { - fn from(value: &ListViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &ListViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ListViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for AutomationPeer { - fn from(value: &ListViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListViewAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListViewBaseAutomationPeer(pub ::windows::core::IInspectable); -impl ListViewBaseAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn DropEffect(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn DropEffects(&self) -> ::windows::core::Result<::windows::core::Array<::windows::core::HSTRING>> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), ::windows::core::Array::<::windows::core::HSTRING>::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListViewBase>>(owner: Param0) -> ::windows::core::Result { - Self::IListViewBaseAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IListViewBaseAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ListViewBaseAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewBaseAutomationPeer;{87ec7649-b83d-4e55-9afd-bd835e748f5c})"); -} -unsafe impl ::windows::core::Interface for ListViewBaseAutomationPeer { - type Vtable = IListViewBaseAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x87ec7649_b83d_4e55_9afd_bd835e748f5c); -} -impl ::windows::core::RuntimeName for ListViewBaseAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewBaseAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListViewBaseAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListViewBaseAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewBaseAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewBaseAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListViewBaseAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewBaseAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IDropTargetProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListViewBaseAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListViewBaseAutomationPeer> for super::Provider::IDropTargetProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewBaseAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for &ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListViewBaseAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListViewBaseAutomationPeer> for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewBaseAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListViewBaseAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListViewBaseAutomationPeer> for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewBaseAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for SelectorAutomationPeer { - fn from(value: ListViewBaseAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewBaseAutomationPeer> for SelectorAutomationPeer { - fn from(value: &ListViewBaseAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: ListViewBaseAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewBaseAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &ListViewBaseAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewBaseAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewBaseAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ListViewBaseAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewBaseAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewBaseAutomationPeer> for AutomationPeer { - fn from(value: &ListViewBaseAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewBaseAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewBaseAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListViewBaseAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListViewBaseAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewBaseAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListViewBaseHeaderItemAutomationPeer(pub ::windows::core::IInspectable); -impl ListViewBaseHeaderItemAutomationPeer { - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for ListViewBaseHeaderItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewBaseHeaderItemAutomationPeer;{7cb8b732-c1f0-4a3c-bc14-85dd48dedb85})"); -} -unsafe impl ::windows::core::Interface for ListViewBaseHeaderItemAutomationPeer { - type Vtable = IListViewBaseHeaderItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7cb8b732_c1f0_4a3c_bc14_85dd48dedb85); -} -impl ::windows::core::RuntimeName for ListViewBaseHeaderItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewBaseHeaderItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for AutomationPeer { - fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewBaseHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListViewBaseHeaderItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewBaseHeaderItemAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListViewHeaderItemAutomationPeer(pub ::windows::core::IInspectable); -impl ListViewHeaderItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListViewHeaderItem>>(owner: Param0) -> ::windows::core::Result { - Self::IListViewHeaderItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IListViewHeaderItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ListViewHeaderItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewHeaderItemAutomationPeer;{67ab1e4b-ad61-4c88-ba45-0f3a8d061f8f})"); -} -unsafe impl ::windows::core::Interface for ListViewHeaderItemAutomationPeer { - type Vtable = IListViewHeaderItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ab1e4b_ad61_4c88_ba45_0f3a8d061f8f); -} -impl ::windows::core::RuntimeName for ListViewHeaderItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewHeaderItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for ListViewBaseHeaderItemAutomationPeer { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for ListViewBaseHeaderItemAutomationPeer { - fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewBaseHeaderItemAutomationPeer> for ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseHeaderItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewBaseHeaderItemAutomationPeer> for &ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseHeaderItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for AutomationPeer { - fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewHeaderItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListViewHeaderItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewHeaderItemAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListViewItemAutomationPeer(pub ::windows::core::IInspectable); -impl ListViewItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListViewItem>>(owner: Param0) -> ::windows::core::Result { - Self::IListViewItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IListViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ListViewItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewItemAutomationPeer;{ca114e70-a16d-4d09-a1cf-1856ef98a9ec})"); -} -unsafe impl ::windows::core::Interface for ListViewItemAutomationPeer { - type Vtable = IListViewItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xca114e70_a16d_4d09_a1cf_1856ef98a9ec); -} -impl ::windows::core::RuntimeName for ListViewItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListViewItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListViewItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListViewItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ListViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemAutomationPeer> for AutomationPeer { - fn from(value: &ListViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListViewItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewItemAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListViewItemDataAutomationPeer(pub ::windows::core::IInspectable); -impl ListViewItemDataAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { - Self::IListViewItemDataAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IListViewItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ListViewItemDataAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewItemDataAutomationPeer;{15a8d7fd-d7a5-4a6c-963c-6f7ce464671a})"); -} -unsafe impl ::windows::core::Interface for ListViewItemDataAutomationPeer { - type Vtable = IListViewItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15a8d7fd_d7a5_4a6c_963c_6f7ce464671a); -} -impl ::windows::core::RuntimeName for ListViewItemDataAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewItemDataAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListViewItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewItemDataAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListViewItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewItemDataAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListViewItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListViewItemDataAutomationPeer> for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListViewItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListViewItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: ListViewItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ListViewItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for SelectorItemAutomationPeer { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemDataAutomationPeer> for SelectorItemAutomationPeer { - fn from(value: &ListViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemDataAutomationPeer> for ItemAutomationPeer { - fn from(value: &ListViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemDataAutomationPeer> for AutomationPeer { - fn from(value: &ListViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemDataAutomationPeer> for super::super::DependencyObject { - fn from(value: &ListViewItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListViewItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewItemDataAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct LoopingSelectorAutomationPeer(pub ::windows::core::IInspectable); -impl LoopingSelectorAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ExpandCollapseState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ExpandCollapseState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Collapse(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Expand(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontalScrollPercent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalScrollPercent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), horizontalamount, verticalamount).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), horizontalpercent, verticalpercent).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for LoopingSelectorAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.LoopingSelectorAutomationPeer;{50b406ca-bae9-4816-8a3a-0cb4f96478a2})"); -} -unsafe impl ::windows::core::Interface for LoopingSelectorAutomationPeer { - type Vtable = ILoopingSelectorAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x50b406ca_bae9_4816_8a3a_0cb4f96478a2); -} -impl ::windows::core::RuntimeName for LoopingSelectorAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.LoopingSelectorAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: LoopingSelectorAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&LoopingSelectorAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&LoopingSelectorAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&LoopingSelectorAutomationPeer> for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for &LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&LoopingSelectorAutomationPeer> for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollProvider { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&LoopingSelectorAutomationPeer> for super::Provider::IScrollProvider { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for &LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&LoopingSelectorAutomationPeer> for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: LoopingSelectorAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &LoopingSelectorAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: LoopingSelectorAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorAutomationPeer> for AutomationPeer { - fn from(value: &LoopingSelectorAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorAutomationPeer> for super::super::DependencyObject { - fn from(value: &LoopingSelectorAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorAutomationPeer {} -unsafe impl ::core::marker::Sync for LoopingSelectorAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct LoopingSelectorItemAutomationPeer(pub ::windows::core::IInspectable); -impl LoopingSelectorItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for LoopingSelectorItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.LoopingSelectorItemAutomationPeer;{d3fa68bf-04cf-4f4c-8d3e-4780a19d4788})"); -} -unsafe impl ::windows::core::Interface for LoopingSelectorItemAutomationPeer { - type Vtable = ILoopingSelectorItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3fa68bf_04cf_4f4c_8d3e_4780a19d4788); -} -impl ::windows::core::RuntimeName for LoopingSelectorItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.LoopingSelectorItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: LoopingSelectorItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&LoopingSelectorItemAutomationPeer> for super::Provider::IScrollItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorItemAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&LoopingSelectorItemAutomationPeer> for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorItemAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: LoopingSelectorItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: LoopingSelectorItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for AutomationPeer { - fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorItemAutomationPeer {} -unsafe impl ::core::marker::Sync for LoopingSelectorItemAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct LoopingSelectorItemDataAutomationPeer(pub ::windows::core::IInspectable); -impl LoopingSelectorItemDataAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for LoopingSelectorItemDataAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.LoopingSelectorItemDataAutomationPeer;{ef567e32-7cd2-4d32-9590-1f588d5ef38d})"); -} -unsafe impl ::windows::core::Interface for LoopingSelectorItemDataAutomationPeer { - type Vtable = ILoopingSelectorItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef567e32_7cd2_4d32_9590_1f588d5ef38d); -} -impl ::windows::core::RuntimeName for LoopingSelectorItemDataAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.LoopingSelectorItemDataAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorItemDataAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&LoopingSelectorItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorItemDataAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for AutomationPeer { - fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for super::super::DependencyObject { - fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for LoopingSelectorItemDataAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MapControlAutomationPeer(pub ::windows::core::IInspectable); -impl MapControlAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontalScrollPercent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalScrollPercent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), horizontalamount, verticalamount).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), horizontalpercent, verticalpercent).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanMove(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanResize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanRotate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Move(&self, x: f64, y: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), x, y).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Resize(&self, width: f64, height: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), width, height).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Rotate(&self, degrees: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), degrees).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanZoom(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ZoomLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn MaxZoom(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn MinZoom(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Zoom(&self, zoom: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), zoom).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ZoomByUnit(&self, zoomunit: super::ZoomUnit) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), zoomunit).ok() } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for MapControlAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MapControlAutomationPeer;{425beee4-f2e8-4bcb-9382-5dfdd11fe45f})"); -} -unsafe impl ::windows::core::Interface for MapControlAutomationPeer { - type Vtable = IMapControlAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x425beee4_f2e8_4bcb_9382_5dfdd11fe45f); -} -impl ::windows::core::RuntimeName for MapControlAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MapControlAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&MapControlAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MapControlAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&MapControlAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MapControlAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollProvider { - type Error = ::windows::core::Error; - fn try_from(value: MapControlAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&MapControlAutomationPeer> for super::Provider::IScrollProvider { - type Error = ::windows::core::Error; - fn try_from(value: &MapControlAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for &MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ITransformProvider { - type Error = ::windows::core::Error; - fn try_from(value: MapControlAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&MapControlAutomationPeer> for super::Provider::ITransformProvider { - type Error = ::windows::core::Error; - fn try_from(value: &MapControlAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ITransformProvider> for MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ITransformProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ITransformProvider> for &MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ITransformProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ITransformProvider2 { - type Error = ::windows::core::Error; - fn try_from(value: MapControlAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&MapControlAutomationPeer> for super::Provider::ITransformProvider2 { - type Error = ::windows::core::Error; - fn try_from(value: &MapControlAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ITransformProvider2> for MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ITransformProvider2> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ITransformProvider2> for &MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ITransformProvider2> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MapControlAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MapControlAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &MapControlAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MapControlAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MapControlAutomationPeer> for AutomationPeer { - fn from(value: &MapControlAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapControlAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MapControlAutomationPeer> for super::super::DependencyObject { - fn from(value: &MapControlAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapControlAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for MapControlAutomationPeer {} -unsafe impl ::core::marker::Sync for MapControlAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MediaElementAutomationPeer(pub ::windows::core::IInspectable); -impl MediaElementAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MediaElement>>(owner: Param0) -> ::windows::core::Result { - Self::IMediaElementAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IMediaElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for MediaElementAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MediaElementAutomationPeer;{ba0b9fc2-a6e2-41a5-b17a-d1594613efba})"); -} -unsafe impl ::windows::core::Interface for MediaElementAutomationPeer { - type Vtable = IMediaElementAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xba0b9fc2_a6e2_41a5_b17a_d1594613efba); -} -impl ::windows::core::RuntimeName for MediaElementAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MediaElementAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MediaElementAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&MediaElementAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MediaElementAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MediaElementAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&MediaElementAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MediaElementAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MediaElementAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MediaElementAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &MediaElementAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MediaElementAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MediaElementAutomationPeer> for AutomationPeer { - fn from(value: &MediaElementAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MediaElementAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MediaElementAutomationPeer> for super::super::DependencyObject { - fn from(value: &MediaElementAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MediaElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for MediaElementAutomationPeer {} -unsafe impl ::core::marker::Sync for MediaElementAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MediaPlayerElementAutomationPeer(pub ::windows::core::IInspectable); -impl MediaPlayerElementAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MediaPlayerElement>>(owner: Param0) -> ::windows::core::Result { - Self::IMediaPlayerElementAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IMediaPlayerElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for MediaPlayerElementAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MediaPlayerElementAutomationPeer;{02bed209-3f65-4fdd-b5ca-c4750d4e6ea4})"); -} -unsafe impl ::windows::core::Interface for MediaPlayerElementAutomationPeer { - type Vtable = IMediaPlayerElementAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02bed209_3f65_4fdd_b5ca_c4750d4e6ea4); -} -impl ::windows::core::RuntimeName for MediaPlayerElementAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MediaPlayerElementAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MediaPlayerElementAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MediaPlayerElementAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MediaPlayerElementAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MediaPlayerElementAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MediaPlayerElementAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &MediaPlayerElementAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MediaPlayerElementAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for AutomationPeer { - fn from(value: &MediaPlayerElementAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MediaPlayerElementAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for super::super::DependencyObject { - fn from(value: &MediaPlayerElementAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MediaPlayerElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for MediaPlayerElementAutomationPeer {} -unsafe impl ::core::marker::Sync for MediaPlayerElementAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MediaTransportControlsAutomationPeer(pub ::windows::core::IInspectable); -impl MediaTransportControlsAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MediaTransportControls>>(owner: Param0) -> ::windows::core::Result { - Self::IMediaTransportControlsAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IMediaTransportControlsAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for MediaTransportControlsAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MediaTransportControlsAutomationPeer;{a3ad8d93-79f8-4958-a3c8-980defb83d15})"); -} -unsafe impl ::windows::core::Interface for MediaTransportControlsAutomationPeer { - type Vtable = IMediaTransportControlsAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa3ad8d93_79f8_4958_a3c8_980defb83d15); -} -impl ::windows::core::RuntimeName for MediaTransportControlsAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MediaTransportControlsAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MediaTransportControlsAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MediaTransportControlsAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MediaTransportControlsAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MediaTransportControlsAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MediaTransportControlsAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &MediaTransportControlsAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MediaTransportControlsAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for AutomationPeer { - fn from(value: &MediaTransportControlsAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MediaTransportControlsAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for super::super::DependencyObject { - fn from(value: &MediaTransportControlsAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MediaTransportControlsAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for MediaTransportControlsAutomationPeer {} -unsafe impl ::core::marker::Sync for MediaTransportControlsAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MenuBarAutomationPeer(pub ::windows::core::IInspectable); -impl MenuBarAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstance<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuBar>>(owner: Param0) -> ::windows::core::Result { - Self::IMenuBarAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IMenuBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for MenuBarAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MenuBarAutomationPeer;{4b6adcf1-f274-5592-85a8-7b099e99b320})"); -} -unsafe impl ::windows::core::Interface for MenuBarAutomationPeer { - type Vtable = IMenuBarAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4b6adcf1_f274_5592_85a8_7b099e99b320); -} -impl ::windows::core::RuntimeName for MenuBarAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MenuBarAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MenuBarAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&MenuBarAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MenuBarAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuBarAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&MenuBarAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MenuBarAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MenuBarAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MenuBarAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &MenuBarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MenuBarAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MenuBarAutomationPeer> for AutomationPeer { - fn from(value: &MenuBarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuBarAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MenuBarAutomationPeer> for super::super::DependencyObject { - fn from(value: &MenuBarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for MenuBarAutomationPeer {} -unsafe impl ::core::marker::Sync for MenuBarAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MenuBarItemAutomationPeer(pub ::windows::core::IInspectable); -impl MenuBarItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ExpandCollapseState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ExpandCollapseState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Collapse(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Expand(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Invoke(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstance<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuBarItem>>(owner: Param0) -> ::windows::core::Result { - Self::IMenuBarItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IMenuBarItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for MenuBarItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MenuBarItemAutomationPeer;{0fce49b4-cff5-5c4b-98ee-e75fdddf799a})"); -} -unsafe impl ::windows::core::Interface for MenuBarItemAutomationPeer { - type Vtable = IMenuBarItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0fce49b4_cff5_5c4b_98ee_e75fdddf799a); -} -impl ::windows::core::RuntimeName for MenuBarItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MenuBarItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MenuBarItemAutomationPeer) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&MenuBarItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MenuBarItemAutomationPeer) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuBarItemAutomationPeer) -> Self { - value.0 - } -} -impl ::core::convert::From<&MenuBarItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MenuBarItemAutomationPeer) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: MenuBarItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&MenuBarItemAutomationPeer> for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: &MenuBarItemAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for &MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: MenuBarItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&MenuBarItemAutomationPeer> for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: &MenuBarItemAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MenuBarItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MenuBarItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &MenuBarItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MenuBarItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[doc(hidden)] +pub struct IAutomationPeerOverrides3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerOverrides3 { + type Vtable = IAutomationPeerOverrides3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb6f0c4ad_4d39_49e6_bb91_d924eefd8538); } -impl ::core::convert::From<&MenuBarItemAutomationPeer> for AutomationPeer { - fn from(value: &MenuBarItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, direction: AutomationNavigationDirection, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, pointinwindowcoordinates: super::super::super::super::Foundation::Point, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides4(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerOverrides4 { + type Vtable = IAutomationPeerOverrides4_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb186cda2_5d46_4bcd_a811_269ad15b3aee); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides4_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationLandmarkType) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides5(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerOverrides5 { + type Vtable = IAutomationPeerOverrides5_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c847c85_781e_49f7_9fef_b9e14d014707); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides5_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides6(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerOverrides6 { + type Vtable = IAutomationPeerOverrides6_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe98babe7_f6ff_444c_9c0d_277eaf0ad9c0); } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuBarItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides6_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides8(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerOverrides8 { + type Vtable = IAutomationPeerOverrides8_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0e1ebbd4_a003_4936_8175_f5457c07f0c6); } -impl ::core::convert::From<&MenuBarItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &MenuBarItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides8_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AutomationHeadingLevel) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides9(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerOverrides9 { + type Vtable = IAutomationPeerOverrides9_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3709e8b_091a_5db5_b896_ff78f01990c9); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerOverrides9_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerProtected(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerProtected { + type Vtable = IAutomationPeerProtected_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf4b40e52_642f_4629_a54a_ea5d2349c448); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerProtected_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Automation_Provider")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, provider: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Automation_Provider"))] usize, + #[cfg(feature = "UI_Xaml_Automation_Provider")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, peer: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Automation_Provider"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAutomationPeerStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerStatics { + type Vtable = IAutomationPeerStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x562f7fb0_a331_4a9c_9dec_bfb7586fffff); } -unsafe impl ::core::marker::Send for MenuBarItemAutomationPeer {} -unsafe impl ::core::marker::Sync for MenuBarItemAutomationPeer {} +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, eventid: AutomationEvents, result__: *mut bool) -> ::windows::core::HRESULT, +); #[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MenuFlyoutItemAutomationPeer(pub ::windows::core::IInspectable); -impl MenuFlyoutItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Invoke(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuFlyoutItem>>(owner: Param0) -> ::windows::core::Result { - Self::IMenuFlyoutItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IMenuFlyoutItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } +#[doc(hidden)] +pub struct IAutomationPeerStatics3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAutomationPeerStatics3 { + type Vtable = IAutomationPeerStatics3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x572c5714_7f87_4271_819f_6cf4c4d022d0); } -unsafe impl ::windows::core::RuntimeType for MenuFlyoutItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MenuFlyoutItemAutomationPeer;{1fc19462-21df-456e-aa11-8fac6b4b2af6})"); +#[repr(C)] +#[doc(hidden)] +pub struct IAutomationPeerStatics3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut RawElementProviderRuntimeId) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IButtonAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IButtonAutomationPeer { + type Vtable = IButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfb77efbe_39ec_4508_8ac3_51a1424027d7); } -unsafe impl ::windows::core::Interface for MenuFlyoutItemAutomationPeer { - type Vtable = IMenuFlyoutItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1fc19462_21df_456e_aa11_8fac6b4b2af6); +#[repr(C)] +#[doc(hidden)] +pub struct IButtonAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IButtonAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IButtonAutomationPeerFactory { + type Vtable = IButtonAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3fdb9f49_f4ab_4780_8644_03376299a175); } -impl ::windows::core::RuntimeName for MenuFlyoutItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MenuFlyoutItemAutomationPeer"; +#[repr(C)] +#[doc(hidden)] +pub struct IButtonAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IButtonBaseAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IButtonBaseAutomationPeer { + type Vtable = IButtonBaseAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa4f3b5b6_7585_4e0b_96d2_08cf6f28befa); } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MenuFlyoutItemAutomationPeer) -> Self { - value.0 .0 - } +#[repr(C)] +#[doc(hidden)] +pub struct IButtonBaseAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IButtonBaseAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IButtonBaseAutomationPeerFactory { + type Vtable = IButtonBaseAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8a04091e_e6b2_4c60_a759_c13ca45165ed); } -impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { - value.0 .0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IButtonBaseAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICalendarDatePickerAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICalendarDatePickerAutomationPeer { + type Vtable = ICalendarDatePickerAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40d8938e_db5e_4b03_beba_d10f62419787); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct ICalendarDatePickerAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICalendarDatePickerAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICalendarDatePickerAutomationPeerFactory { + type Vtable = ICalendarDatePickerAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xab705dd2_d293_45bf_9f19_26f7603a5e9b); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct ICalendarDatePickerAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICaptureElementAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICaptureElementAutomationPeer { + type Vtable = ICaptureElementAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdcc44ee0_fa45_45c6_8bb7_320d808f5958); } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuFlyoutItemAutomationPeer) -> Self { - value.0 - } +#[repr(C)] +#[doc(hidden)] +pub struct ICaptureElementAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICaptureElementAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICaptureElementAutomationPeerFactory { + type Vtable = ICaptureElementAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b92ef48_85e9_4869_b175_8f7cf45a6d9f); } -impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { - value.0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct ICaptureElementAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICheckBoxAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICheckBoxAutomationPeer { + type Vtable = ICheckBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb15bc42_c0a9_46c6_ac24_b83de429c733); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct ICheckBoxAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICheckBoxAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICheckBoxAutomationPeerFactory { + type Vtable = ICheckBoxAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb75c775d_eb8f_44ef_a27c_e26ac7de8333); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct ICheckBoxAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorPickerSliderAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorPickerSliderAutomationPeer { + type Vtable = IColorPickerSliderAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa514215a_7293_4577_924c_47d4e0bf9b90); } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: MenuFlyoutItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IColorPickerSliderAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorPickerSliderAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorPickerSliderAutomationPeerFactory { + type Vtable = IColorPickerSliderAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a55c77e_9dd6_45a3_9042_b40200fea1a9); } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&MenuFlyoutItemAutomationPeer> for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: &MenuFlyoutItemAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IColorPickerSliderAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorSpectrumAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorSpectrumAutomationPeer { + type Vtable = IColorSpectrumAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15d5ba03_010d_4ff7_9087_f4dd09f831b7); } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::windows::core::IntoParam::into_param(&self) - } +#[repr(C)] +#[doc(hidden)] +pub struct IColorSpectrumAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorSpectrumAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorSpectrumAutomationPeerFactory { + type Vtable = IColorSpectrumAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0ac400e1_b743_4496_837a_8889e6ac6497); } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } +#[repr(C)] +#[doc(hidden)] +pub struct IColorSpectrumAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IComboBoxAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IComboBoxAutomationPeer { + type Vtable = IComboBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7eb40d0b_75c5_4263_ba6a_d4a54fb0f239); } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IComboBoxAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IComboBoxAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IComboBoxAutomationPeerFactory { + type Vtable = IComboBoxAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x098e5b0d_1b90_40b9_9be3_b23267eb13cf); } -impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IComboBoxAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IComboBoxItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IComboBoxItemAutomationPeer { + type Vtable = IComboBoxItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x12ddc76e_9552_446a_82ee_938cc371800f); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IComboBoxItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IComboBoxItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IComboBoxItemAutomationPeerFactory { + type Vtable = IComboBoxItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x134ac7fc_397a_403f_a6ec_1ce8beda15e5); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IComboBoxItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IComboBoxItemDataAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IComboBoxItemDataAutomationPeer { + type Vtable = IComboBoxItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4fef6df2_289c_4c04_831b_5a668c6d7104); } -impl ::core::convert::From for AutomationPeer { - fn from(value: MenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IComboBoxItemDataAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IComboBoxItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IComboBoxItemDataAutomationPeerFactory { + type Vtable = IComboBoxItemDataAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14a8d4f6_469a_41ba_9d93_44a1a55da872); } -impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for AutomationPeer { - fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IComboBoxItemDataAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IDatePickerAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IDatePickerAutomationPeer { + type Vtable = IDatePickerAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd07d357f_a0b9_45dc_991a_76c505e7d0f5); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IDatePickerAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IDatePickerAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IDatePickerAutomationPeerFactory { + type Vtable = IDatePickerAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe5667d19_9157_4436_9f4d_7fb99174b48e); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IDatePickerAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IDatePickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IDatePickerFlyoutPresenterAutomationPeer { + type Vtable = IDatePickerFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x752aed38_c2bf_4880_82b2_a6c05e90c135); } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IDatePickerFlyoutPresenterAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlipViewAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlipViewAutomationPeer { + type Vtable = IFlipViewAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8ec0353a_4284_4b00_aef8_a2688ea5e3c4); } -impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IFlipViewAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlipViewAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlipViewAutomationPeerFactory { + type Vtable = IFlipViewAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4395ab0d_8d83_483c_88eb_e2617b0d293f); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IFlipViewAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlipViewItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlipViewItemAutomationPeer { + type Vtable = IFlipViewItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc83034de_fa08_4bd3_aeb2_d2e5bfa04df9); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IFlipViewItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlipViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlipViewItemAutomationPeerFactory { + type Vtable = IFlipViewItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69109356_d0e5_4c10_a09c_ad0bf1b0cb01); } -unsafe impl ::core::marker::Send for MenuFlyoutItemAutomationPeer {} -unsafe impl ::core::marker::Sync for MenuFlyoutItemAutomationPeer {} +#[repr(C)] +#[doc(hidden)] +pub struct IFlipViewItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); #[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MenuFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -impl MenuFlyoutPresenterAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuFlyoutPresenter>>(owner: Param0) -> ::windows::core::Result { - Self::IMenuFlyoutPresenterAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IMenuFlyoutPresenterAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } +#[doc(hidden)] +pub struct IFlipViewItemDataAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlipViewItemDataAutomationPeer { + type Vtable = IFlipViewItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb0986175_00bc_4118_8a6f_16ee9c15d968); } -unsafe impl ::windows::core::RuntimeType for MenuFlyoutPresenterAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MenuFlyoutPresenterAutomationPeer;{e244a871-fcbb-48fc-8a93-41ea134b53ce})"); +#[repr(C)] +#[doc(hidden)] +pub struct IFlipViewItemDataAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlipViewItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlipViewItemDataAutomationPeerFactory { + type Vtable = IFlipViewItemDataAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c864393_0aea_4e78_bc11_b775cac4114c); } -unsafe impl ::windows::core::Interface for MenuFlyoutPresenterAutomationPeer { - type Vtable = IMenuFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe244a871_fcbb_48fc_8a93_41ea134b53ce); +#[repr(C)] +#[doc(hidden)] +pub struct IFlipViewItemDataAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutPresenterAutomationPeer { + type Vtable = IFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa01840b4_5fca_456f_98ea_300eb40b585e); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutPresenterAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutPresenterAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutPresenterAutomationPeerFactory { + type Vtable = IFlyoutPresenterAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf350155f_8924_44c0_ba44_653fe79f1efb); } -impl ::windows::core::RuntimeName for MenuFlyoutPresenterAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MenuFlyoutPresenterAutomationPeer"; +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutPresenterAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFrameworkElementAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFrameworkElementAutomationPeer { + type Vtable = IFrameworkElementAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb90ad781_bfeb_4451_bd47_9f3a63ebd24a); } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - value.0 .0 - } +#[repr(C)] +#[doc(hidden)] +pub struct IFrameworkElementAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFrameworkElementAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFrameworkElementAutomationPeerFactory { + type Vtable = IFrameworkElementAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0db9b8bc_b812_48e3_af1f_dbc57600c325); } -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - value.0 .0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IFrameworkElementAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFrameworkElementAutomationPeerStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFrameworkElementAutomationPeerStatics { + type Vtable = IFrameworkElementAutomationPeerStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9c0b997_2820_44a1_a5a8_9b801edc269e); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IFrameworkElementAutomationPeerStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewAutomationPeer { + type Vtable = IGridViewAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c4401a4_d951_49ca_8f82_c7f3c60681b0); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewAutomationPeerFactory { + type Vtable = IGridViewAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8aca59dd_22a7_4800_894b_c1f485f38953); } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - value.0 - } +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewHeaderItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewHeaderItemAutomationPeer { + type Vtable = IGridViewHeaderItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3dcef3a_e08a_48e7_b23a_2be5b66e474e); } -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - value.0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewHeaderItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewHeaderItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewHeaderItemAutomationPeerFactory { + type Vtable = IGridViewHeaderItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c80b4d2_ffc2_4157_88dd_59cd92e39715); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewHeaderItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewItemAutomationPeer { + type Vtable = IGridViewItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93ef2d07_346c_4166_a4ba_bc6a181e7f33); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewItemAutomationPeerFactory { + type Vtable = IGridViewItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfafec376_f22e_466d_913c_ae24ccdb160f); } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: MenuFlyoutPresenterAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewItemDataAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewItemDataAutomationPeer { + type Vtable = IGridViewItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3f4868f_29d4_4094_8c54_ea61a88294a4); } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&MenuFlyoutPresenterAutomationPeer> for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: &MenuFlyoutPresenterAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewItemDataAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewItemDataAutomationPeerFactory { + type Vtable = IGridViewItemDataAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa65e7a88_770d_402c_996f_67506af2a4af); } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::windows::core::IntoParam::into_param(&self) - } +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewItemDataAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGroupItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGroupItemAutomationPeer { + type Vtable = IGroupItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1914fe6d_0740_4236_9ee1_38cf19c1c388); } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } +#[repr(C)] +#[doc(hidden)] +pub struct IGroupItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGroupItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGroupItemAutomationPeerFactory { + type Vtable = IGroupItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56a64567_f21c_4c90_b379_15a27c7f8409); } -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IGroupItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IHubAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IHubAutomationPeer { + type Vtable = IHubAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ddee056_4ebc_4620_a05d_903e3c9a4ead); } -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IHubAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IHubAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IHubAutomationPeerFactory { + type Vtable = IHubAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc762d43f_79dd_43ee_8777_8d08b39aa065); } -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IHubAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IHubSectionAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IHubSectionAutomationPeer { + type Vtable = IHubSectionAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x16d91ff7_7431_4d82_83ce_cfa3192b0f18); } -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IHubSectionAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IHubSectionAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IHubSectionAutomationPeerFactory { + type Vtable = IHubSectionAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc68e27e8_17ec_4329_91ae_2d0b2339d498); } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IHubSectionAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IHyperlinkButtonAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IHyperlinkButtonAutomationPeer { + type Vtable = IHyperlinkButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaa7afcb1_0edf_46d9_aa9e_0eb21d140097); } -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IHyperlinkButtonAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IHyperlinkButtonAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IHyperlinkButtonAutomationPeerFactory { + type Vtable = IHyperlinkButtonAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x59bc1661_c182_49af_9526_44b88e628455); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IHyperlinkButtonAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IImageAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IImageAutomationPeer { + type Vtable = IImageAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b0bbf8c_60a2_48bf_ab2c_1a52a451d2d4); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IImageAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IImageAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IImageAutomationPeerFactory { + type Vtable = IImageAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90304003_687d_47bf_b3a2_4babcad8ef50); } -impl ::core::convert::From for AutomationPeer { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IImageAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IInkToolbarAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IInkToolbarAutomationPeer { + type Vtable = IInkToolbarAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x123baaa4_f2e8_4bcb_9382_5dfdd11fe45f); } -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for AutomationPeer { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IInkToolbarAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IItemAutomationPeer { + type Vtable = IItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x953c34f6_3b31_47a7_b3bf_25d3ae99c317); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IItemAutomationPeerFactory { + type Vtable = IItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29065073_de3d_4d3f_97b4_4d6f9d53444d); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IItemsControlAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IItemsControlAutomationPeer { + type Vtable = IItemsControlAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96e76bf1_37f7_4088_925d_65268e83e34d); } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IItemsControlAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IItemsControlAutomationPeer2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IItemsControlAutomationPeer2 { + type Vtable = IItemsControlAutomationPeer2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc48d8917_95a8_47b8_a517_bf891a6c039b); } -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for super::super::DependencyObject { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IItemsControlAutomationPeer2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IItemsControlAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IItemsControlAutomationPeerFactory { + type Vtable = IItemsControlAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4038a259_2e1a_49ca_a533_c64f181577e6); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IItemsControlAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IItemsControlAutomationPeerOverrides2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IItemsControlAutomationPeerOverrides2 { + type Vtable = IItemsControlAutomationPeerOverrides2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x361dc0e8_b56f_45e9_80fe_10a0fb0fe177); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IItemsControlAutomationPeerOverrides2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListBoxAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListBoxAutomationPeer { + type Vtable = IListBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8cd0d608_b402_4a6e_bd9a_343f8845eb32); } -unsafe impl ::core::marker::Send for MenuFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for MenuFlyoutPresenterAutomationPeer {} +#[repr(C)] +#[doc(hidden)] +pub struct IListBoxAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); #[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct NavigationViewItemAutomationPeer(pub ::windows::core::IInspectable); -impl NavigationViewItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::NavigationViewItem>>(owner: Param0) -> ::windows::core::Result { - Self::INavigationViewItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn INavigationViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } +#[doc(hidden)] +pub struct IListBoxAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListBoxAutomationPeerFactory { + type Vtable = IListBoxAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe2362185_7df6_49f7_8abc_4c33f1a3d46e); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListBoxAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListBoxItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListBoxItemAutomationPeer { + type Vtable = IListBoxItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1bc6e1c6_2997_42df_99eb_92bc1dd149fb); } -unsafe impl ::windows::core::RuntimeType for NavigationViewItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.NavigationViewItemAutomationPeer;{309847a5-9971-4d8d-a81c-085c7086a1b9})"); +#[repr(C)] +#[doc(hidden)] +pub struct IListBoxItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListBoxItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListBoxItemAutomationPeerFactory { + type Vtable = IListBoxItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x509f9dd8_b0aa_443f_a110_41209af44f1c); } -unsafe impl ::windows::core::Interface for NavigationViewItemAutomationPeer { - type Vtable = INavigationViewItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x309847a5_9971_4d8d_a81c_085c7086a1b9); +#[repr(C)] +#[doc(hidden)] +pub struct IListBoxItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListBoxItemDataAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListBoxItemDataAutomationPeer { + type Vtable = IListBoxItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfd7d5fee_fde0_482a_8084_dcebba5b9806); } -impl ::windows::core::RuntimeName for NavigationViewItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.NavigationViewItemAutomationPeer"; +#[repr(C)] +#[doc(hidden)] +pub struct IListBoxItemDataAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListBoxItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListBoxItemDataAutomationPeerFactory { + type Vtable = IListBoxItemDataAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd7924e16_bd8d_4662_a995_20ff9a056093); } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - value.0 .0 - } +#[repr(C)] +#[doc(hidden)] +pub struct IListBoxItemDataAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListPickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListPickerFlyoutPresenterAutomationPeer { + type Vtable = IListPickerFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56dfdc58_2395_4060_8047_8ea463698a24); } -impl ::core::convert::From<&NavigationViewItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &NavigationViewItemAutomationPeer) -> Self { - value.0 .0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IListPickerFlyoutPresenterAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewAutomationPeer { + type Vtable = IListViewAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73cecc87_c0dc_4260_9148_75e9864a7230); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewAutomationPeerFactory { + type Vtable = IListViewAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x65f39174_eaa2_4e44_8be6_4cca28cd0288); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewBaseAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewBaseAutomationPeer { + type Vtable = IListViewBaseAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x87ec7649_b83d_4e55_9afd_bd835e748f5c); } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - value.0 - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewBaseAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewBaseAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewBaseAutomationPeerFactory { + type Vtable = IListViewBaseAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x70d3c2be_8950_4647_9362_fd002f8ff82e); } -impl ::core::convert::From<&NavigationViewItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &NavigationViewItemAutomationPeer) -> Self { - value.0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewBaseAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewBaseHeaderItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewBaseHeaderItemAutomationPeer { + type Vtable = IListViewBaseHeaderItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7cb8b732_c1f0_4a3c_bc14_85dd48dedb85); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewBaseHeaderItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewBaseHeaderItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewBaseHeaderItemAutomationPeerFactory { + type Vtable = IListViewBaseHeaderItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40ec995f_d631_4004_832e_6d8643e51561); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewBaseHeaderItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewHeaderItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewHeaderItemAutomationPeer { + type Vtable = IListViewHeaderItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ab1e4b_ad61_4c88_ba45_0f3a8d061f8f); } -impl ::core::convert::From for ListViewItemAutomationPeer { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewHeaderItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewHeaderItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewHeaderItemAutomationPeerFactory { + type Vtable = IListViewHeaderItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x07668694_2ca5_4be4_a8b9_592d48f76087); } -impl ::core::convert::From<&NavigationViewItemAutomationPeer> for ListViewItemAutomationPeer { - fn from(value: &NavigationViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewHeaderItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemAutomationPeer { + type Vtable = IListViewItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xca114e70_a16d_4d09_a1cf_1856ef98a9ec); } -impl<'a> ::windows::core::IntoParam<'a, ListViewItemAutomationPeer> for NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemAutomationPeerFactory { + type Vtable = IListViewItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc47dfbc0_facc_4024_a73b_17ec4e662654); } -impl<'a> ::windows::core::IntoParam<'a, ListViewItemAutomationPeer> for &NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemDataAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemDataAutomationPeer { + type Vtable = IListViewItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15a8d7fd_d7a5_4a6c_963c_6f7ce464671a); } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemDataAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemDataAutomationPeerFactory { + type Vtable = IListViewItemDataAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0db12bb_d715_4523_acc0_1e1072d8e32b); } -impl ::core::convert::From<&NavigationViewItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &NavigationViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemDataAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILoopingSelectorAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILoopingSelectorAutomationPeer { + type Vtable = ILoopingSelectorAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x50b406ca_bae9_4816_8a3a_0cb4f96478a2); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct ILoopingSelectorAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILoopingSelectorItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILoopingSelectorItemAutomationPeer { + type Vtable = ILoopingSelectorItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3fa68bf_04cf_4f4c_8d3e_4780a19d4788); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct ILoopingSelectorItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILoopingSelectorItemDataAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILoopingSelectorItemDataAutomationPeer { + type Vtable = ILoopingSelectorItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef567e32_7cd2_4d32_9590_1f588d5ef38d); } -impl ::core::convert::From for AutomationPeer { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct ILoopingSelectorItemDataAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMapControlAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMapControlAutomationPeer { + type Vtable = IMapControlAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x425beee4_f2e8_4bcb_9382_5dfdd11fe45f); } -impl ::core::convert::From<&NavigationViewItemAutomationPeer> for AutomationPeer { - fn from(value: &NavigationViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IMapControlAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMediaElementAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMediaElementAutomationPeer { + type Vtable = IMediaElementAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xba0b9fc2_a6e2_41a5_b17a_d1594613efba); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IMediaElementAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMediaElementAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMediaElementAutomationPeerFactory { + type Vtable = IMediaElementAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb2ad3b28_7575_4173_9bc7_80367a164ed2); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IMediaElementAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMediaPlayerElementAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMediaPlayerElementAutomationPeer { + type Vtable = IMediaPlayerElementAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02bed209_3f65_4fdd_b5ca_c4750d4e6ea4); } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IMediaPlayerElementAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMediaPlayerElementAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMediaPlayerElementAutomationPeerFactory { + type Vtable = IMediaPlayerElementAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x08848077_82af_4d19_b170_282a9e0e7f37); +} +#[repr(C)] +#[doc(hidden)] +pub struct IMediaPlayerElementAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMediaTransportControlsAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMediaTransportControlsAutomationPeer { + type Vtable = IMediaTransportControlsAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa3ad8d93_79f8_4958_a3c8_980defb83d15); } -impl ::core::convert::From<&NavigationViewItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &NavigationViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IMediaTransportControlsAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMediaTransportControlsAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMediaTransportControlsAutomationPeerFactory { + type Vtable = IMediaTransportControlsAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf41cb003_e103_4ab0_812a_a08fbdb570ce); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IMediaTransportControlsAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMenuBarAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuBarAutomationPeer { + type Vtable = IMenuBarAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4b6adcf1_f274_5592_85a8_7b099e99b320); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IMenuBarAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMenuBarAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuBarAutomationPeerFactory { + type Vtable = IMenuBarAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a094871_4a9b_5a0b_9fda_7bc3ae957c53); } -unsafe impl ::core::marker::Send for NavigationViewItemAutomationPeer {} -unsafe impl ::core::marker::Sync for NavigationViewItemAutomationPeer {} +#[repr(C)] +#[doc(hidden)] +pub struct IMenuBarAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); #[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PasswordBoxAutomationPeer(pub ::windows::core::IInspectable); -impl PasswordBoxAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::PasswordBox>>(owner: Param0) -> ::windows::core::Result { - Self::IPasswordBoxAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IPasswordBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } +#[doc(hidden)] +pub struct IMenuBarItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuBarItemAutomationPeer { + type Vtable = IMenuBarItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0fce49b4_cff5_5c4b_98ee_e75fdddf799a); } -unsafe impl ::windows::core::RuntimeType for PasswordBoxAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PasswordBoxAutomationPeer;{684f065e-3df3-4b9f-82ad-8819db3b218a})"); +#[repr(C)] +#[doc(hidden)] +pub struct IMenuBarItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMenuBarItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuBarItemAutomationPeerFactory { + type Vtable = IMenuBarItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9c77746_130f_5b19_83a6_61db584613aa); } -unsafe impl ::windows::core::Interface for PasswordBoxAutomationPeer { - type Vtable = IPasswordBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x684f065e_3df3_4b9f_82ad_8819db3b218a); +#[repr(C)] +#[doc(hidden)] +pub struct IMenuBarItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMenuFlyoutItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuFlyoutItemAutomationPeer { + type Vtable = IMenuFlyoutItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1fc19462_21df_456e_aa11_8fac6b4b2af6); } -impl ::windows::core::RuntimeName for PasswordBoxAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PasswordBoxAutomationPeer"; +#[repr(C)] +#[doc(hidden)] +pub struct IMenuFlyoutItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMenuFlyoutItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuFlyoutItemAutomationPeerFactory { + type Vtable = IMenuFlyoutItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd08bfcb8_20d1_45d8_a2c2_2f130df714e0); } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PasswordBoxAutomationPeer) -> Self { - value.0 .0 - } +#[repr(C)] +#[doc(hidden)] +pub struct IMenuFlyoutItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMenuFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuFlyoutPresenterAutomationPeer { + type Vtable = IMenuFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe244a871_fcbb_48fc_8a93_41ea134b53ce); } -impl ::core::convert::From<&PasswordBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PasswordBoxAutomationPeer) -> Self { - value.0 .0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IMenuFlyoutPresenterAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMenuFlyoutPresenterAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuFlyoutPresenterAutomationPeerFactory { + type Vtable = IMenuFlyoutPresenterAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x07b5172d_761d_452b_9e6d_fa2a8be0ad26); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IMenuFlyoutPresenterAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct INavigationViewItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for INavigationViewItemAutomationPeer { + type Vtable = INavigationViewItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x309847a5_9971_4d8d_a81c_085c7086a1b9); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct INavigationViewItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct INavigationViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for INavigationViewItemAutomationPeerFactory { + type Vtable = INavigationViewItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0bc2835d_aa38_4f97_9664_e6fc821d81ed); } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PasswordBoxAutomationPeer) -> Self { - value.0 - } +#[repr(C)] +#[doc(hidden)] +pub struct INavigationViewItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPasswordBoxAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPasswordBoxAutomationPeer { + type Vtable = IPasswordBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x684f065e_3df3_4b9f_82ad_8819db3b218a); } -impl ::core::convert::From<&PasswordBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PasswordBoxAutomationPeer) -> Self { - value.0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IPasswordBoxAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPasswordBoxAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPasswordBoxAutomationPeerFactory { + type Vtable = IPasswordBoxAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xac3d7ede_dca4_481c_b520_4a9b3f3b179c); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IPasswordBoxAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPersonPictureAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPersonPictureAutomationPeer { + type Vtable = IPersonPictureAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x27156d4c_a66f_4aaf_8286_4f796d30628c); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IPersonPictureAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPersonPictureAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPersonPictureAutomationPeerFactory { + type Vtable = IPersonPictureAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa95f1f6d_2524_44a4_97fd_1181130100ad); } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PasswordBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IPersonPictureAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPickerFlyoutPresenterAutomationPeer { + type Vtable = IPickerFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x28414bf7_8382_4eae_93c1_d6f035aa8155); } -impl ::core::convert::From<&PasswordBoxAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &PasswordBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IPickerFlyoutPresenterAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotAutomationPeer { + type Vtable = IPivotAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe715a8f8_3b9d_402c_81e2_6e912ef58981); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IPivotAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotAutomationPeerFactory { + type Vtable = IPivotAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3efe0f94_0c91_4341_b9ac_1b56b4e6b84f); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IPivotAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotItemAutomationPeer { + type Vtable = IPivotItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a4241ad_5d55_4d27_b40f_2d37506fbe78); } -impl ::core::convert::From for AutomationPeer { - fn from(value: PasswordBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IPivotItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotItemAutomationPeerFactory { + type Vtable = IPivotItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf2810471_183f_416b_b41a_1e5a958a91f4); } -impl ::core::convert::From<&PasswordBoxAutomationPeer> for AutomationPeer { - fn from(value: &PasswordBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IPivotItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotItemDataAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotItemDataAutomationPeer { + type Vtable = IPivotItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa2a3b788_ea1d_48b7_88ee_f08b6aa07fee); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IPivotItemDataAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotItemDataAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotItemDataAutomationPeerFactory { + type Vtable = IPivotItemDataAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x517a2480_d3b6_412e_82b6_94a0a84c13b0); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IPivotItemDataAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IProgressBarAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IProgressBarAutomationPeer { + type Vtable = IProgressBarAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93f48f86_d840_4fb6_ac2f_5f779b854b0d); } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PasswordBoxAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IProgressBarAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IProgressBarAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IProgressBarAutomationPeerFactory { + type Vtable = IProgressBarAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x364679ab_b80f_41b4_8eea_2f5251bc739c); } -impl ::core::convert::From<&PasswordBoxAutomationPeer> for super::super::DependencyObject { - fn from(value: &PasswordBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IProgressBarAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IProgressRingAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IProgressRingAutomationPeer { + type Vtable = IProgressRingAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbc305eee_39d3_4eeb_ac33_2394de123e2e); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IProgressRingAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IProgressRingAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IProgressRingAutomationPeerFactory { + type Vtable = IProgressRingAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3db204b_157e_40bc_9593_55bc5c71a4f6); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IProgressRingAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRadioButtonAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRadioButtonAutomationPeer { + type Vtable = IRadioButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e6a5ed8_0b30_4743_b102_dcdf548e3131); } -unsafe impl ::core::marker::Send for PasswordBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for PasswordBoxAutomationPeer {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(C)] +#[doc(hidden)] +pub struct IRadioButtonAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); #[repr(transparent)] -pub struct PatternInterface(pub i32); -impl PatternInterface { - pub const Invoke: PatternInterface = PatternInterface(0i32); - pub const Selection: PatternInterface = PatternInterface(1i32); - pub const Value: PatternInterface = PatternInterface(2i32); - pub const RangeValue: PatternInterface = PatternInterface(3i32); - pub const Scroll: PatternInterface = PatternInterface(4i32); - pub const ScrollItem: PatternInterface = PatternInterface(5i32); - pub const ExpandCollapse: PatternInterface = PatternInterface(6i32); - pub const Grid: PatternInterface = PatternInterface(7i32); - pub const GridItem: PatternInterface = PatternInterface(8i32); - pub const MultipleView: PatternInterface = PatternInterface(9i32); - pub const Window: PatternInterface = PatternInterface(10i32); - pub const SelectionItem: PatternInterface = PatternInterface(11i32); - pub const Dock: PatternInterface = PatternInterface(12i32); - pub const Table: PatternInterface = PatternInterface(13i32); - pub const TableItem: PatternInterface = PatternInterface(14i32); - pub const Toggle: PatternInterface = PatternInterface(15i32); - pub const Transform: PatternInterface = PatternInterface(16i32); - pub const Text: PatternInterface = PatternInterface(17i32); - pub const ItemContainer: PatternInterface = PatternInterface(18i32); - pub const VirtualizedItem: PatternInterface = PatternInterface(19i32); - pub const Text2: PatternInterface = PatternInterface(20i32); - pub const TextChild: PatternInterface = PatternInterface(21i32); - pub const TextRange: PatternInterface = PatternInterface(22i32); - pub const Annotation: PatternInterface = PatternInterface(23i32); - pub const Drag: PatternInterface = PatternInterface(24i32); - pub const DropTarget: PatternInterface = PatternInterface(25i32); - pub const ObjectModel: PatternInterface = PatternInterface(26i32); - pub const Spreadsheet: PatternInterface = PatternInterface(27i32); - pub const SpreadsheetItem: PatternInterface = PatternInterface(28i32); - pub const Styles: PatternInterface = PatternInterface(29i32); - pub const Transform2: PatternInterface = PatternInterface(30i32); - pub const SynchronizedInput: PatternInterface = PatternInterface(31i32); - pub const TextEdit: PatternInterface = PatternInterface(32i32); - pub const CustomNavigation: PatternInterface = PatternInterface(33i32); +#[doc(hidden)] +pub struct IRadioButtonAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRadioButtonAutomationPeerFactory { + type Vtable = IRadioButtonAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4940c4fd_3d88_49ca_8f31_924187af0bfe); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRadioButtonAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRangeBaseAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRangeBaseAutomationPeer { + type Vtable = IRangeBaseAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe454b549_4b2c_42ad_b04b_d35947d1ee50); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRangeBaseAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRangeBaseAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRangeBaseAutomationPeerFactory { + type Vtable = IRangeBaseAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x827c7601_3078_4479_95ea_91374ca06207); } -impl ::core::convert::From for PatternInterface { - fn from(value: i32) -> Self { - Self(value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IRangeBaseAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRatingControlAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRatingControlAutomationPeer { + type Vtable = IRatingControlAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d14349a_9963_4a47_823c_f457cb3209d5); } -unsafe impl ::windows::core::Abi for PatternInterface { - type Abi = Self; +#[repr(C)] +#[doc(hidden)] +pub struct IRatingControlAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRatingControlAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRatingControlAutomationPeerFactory { + type Vtable = IRatingControlAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf179f272_9846_4632_8b9c_be6fa8d3c9bb); } -unsafe impl ::windows::core::RuntimeType for PatternInterface { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.PatternInterface;i4)"); +#[repr(C)] +#[doc(hidden)] +pub struct IRatingControlAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRepeatButtonAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRepeatButtonAutomationPeer { + type Vtable = IRepeatButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29e41ad5_a8ac_4e8a_83d8_09e37e054257); } -impl ::windows::core::DefaultType for PatternInterface { - type DefaultType = Self; +#[repr(C)] +#[doc(hidden)] +pub struct IRepeatButtonAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRepeatButtonAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRepeatButtonAutomationPeerFactory { + type Vtable = IRepeatButtonAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a6ff9d4_575e_4e60_bdd6_ec14419b4ff6); } +#[repr(C)] +#[doc(hidden)] +pub struct IRepeatButtonAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, +); #[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PersonPictureAutomationPeer(pub ::windows::core::IInspectable); -impl PersonPictureAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::PersonPicture>>(owner: Param0) -> ::windows::core::Result { - Self::IPersonPictureAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IPersonPictureAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } +#[doc(hidden)] +pub struct IRichEditBoxAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRichEditBoxAutomationPeer { + type Vtable = IRichEditBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69f5c04_16ee_467a_a833_c3da8458ad64); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRichEditBoxAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRichEditBoxAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRichEditBoxAutomationPeerFactory { + type Vtable = IRichEditBoxAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x752c8399_d296_4d87_9020_a4750e885b3c); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRichEditBoxAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRichTextBlockAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRichTextBlockAutomationPeer { + type Vtable = IRichTextBlockAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93a01a9c_9609_41fa_82f3_909c09f49a72); } -unsafe impl ::windows::core::RuntimeType for PersonPictureAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PersonPictureAutomationPeer;{27156d4c-a66f-4aaf-8286-4f796d30628c})"); +#[repr(C)] +#[doc(hidden)] +pub struct IRichTextBlockAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRichTextBlockAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRichTextBlockAutomationPeerFactory { + type Vtable = IRichTextBlockAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2038ae61_1389_467a_aed6_37334da9622b); } -unsafe impl ::windows::core::Interface for PersonPictureAutomationPeer { - type Vtable = IPersonPictureAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x27156d4c_a66f_4aaf_8286_4f796d30628c); +#[repr(C)] +#[doc(hidden)] +pub struct IRichTextBlockAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRichTextBlockOverflowAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRichTextBlockOverflowAutomationPeer { + type Vtable = IRichTextBlockOverflowAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c9a409a_2736_437b_ab36_a16a202f105d); } -impl ::windows::core::RuntimeName for PersonPictureAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PersonPictureAutomationPeer"; +#[repr(C)] +#[doc(hidden)] +pub struct IRichTextBlockOverflowAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRichTextBlockOverflowAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRichTextBlockOverflowAutomationPeerFactory { + type Vtable = IRichTextBlockOverflowAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbd5eb663_2c14_4665_adef_f2b033947beb); } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PersonPictureAutomationPeer) -> Self { - value.0 .0 - } +#[repr(C)] +#[doc(hidden)] +pub struct IRichTextBlockOverflowAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IScrollBarAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IScrollBarAutomationPeer { + type Vtable = IScrollBarAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69e0c369_bbe7_41f2_87ca_aad813fe550e); } -impl ::core::convert::From<&PersonPictureAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PersonPictureAutomationPeer) -> Self { - value.0 .0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct IScrollBarAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IScrollBarAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IScrollBarAutomationPeerFactory { + type Vtable = IScrollBarAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe1302110_afeb_4595_8e3d_edc0844a2b21); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IScrollBarAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IScrollViewerAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IScrollViewerAutomationPeer { + type Vtable = IScrollViewerAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd985f259_1b09_4e88_88fd_421750dc6b45); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } +#[repr(C)] +#[doc(hidden)] +pub struct IScrollViewerAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IScrollViewerAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IScrollViewerAutomationPeerFactory { + type Vtable = IScrollViewerAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x270dff7d_d96d_48f9_a36a_c252aa9c4670); } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PersonPictureAutomationPeer) -> Self { - value.0 - } +#[repr(C)] +#[doc(hidden)] +pub struct IScrollViewerAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISearchBoxAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISearchBoxAutomationPeer { + type Vtable = ISearchBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x854011a4_18a6_4f30_939b_8871afa3f5e9); } -impl ::core::convert::From<&PersonPictureAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PersonPictureAutomationPeer) -> Self { - value.0.clone() - } +#[repr(C)] +#[doc(hidden)] +pub struct ISearchBoxAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISearchBoxAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISearchBoxAutomationPeerFactory { + type Vtable = ISearchBoxAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb3c01430_7faa_41bb_8e91_7c761c5267f1); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct ISearchBoxAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelectorAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelectorAutomationPeer { + type Vtable = ISelectorAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x162ac829_7115_43ec_b383_a7b71644069d); } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } +#[repr(C)] +#[doc(hidden)] +pub struct ISelectorAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelectorAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelectorAutomationPeerFactory { + type Vtable = ISelectorAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b525646_829b_4dcc_bd52_5a8d0399387a); } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PersonPictureAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct ISelectorAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelectorItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelectorItemAutomationPeer { + type Vtable = ISelectorItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae8b3477_860a_45bb_bf7c_e1b27419d1dd); } -impl ::core::convert::From<&PersonPictureAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &PersonPictureAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct ISelectorItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelectorItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelectorItemAutomationPeerFactory { + type Vtable = ISelectorItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x66d7edfb_786d_4362_a964_ebfb21776c30); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct ISelectorItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, item: ::windows::core::RawPtr, parent: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISemanticZoomAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISemanticZoomAutomationPeer { + type Vtable = ISemanticZoomAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c2fac6c_a977_47fc_b44e_2754c0b2bea9); } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct ISemanticZoomAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISemanticZoomAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISemanticZoomAutomationPeerFactory { + type Vtable = ISemanticZoomAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf518d44d_a493_4496_b077_9674c7f4c5fa); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISemanticZoomAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISettingsFlyoutAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISettingsFlyoutAutomationPeer { + type Vtable = ISettingsFlyoutAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0de0cdb_30cf_47a6_a5eb_9c77f0b0d6dd); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISettingsFlyoutAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISettingsFlyoutAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISettingsFlyoutAutomationPeerFactory { + type Vtable = ISettingsFlyoutAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf94762bd_8a14_40e4_94a7_3f33c922e945); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISettingsFlyoutAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISliderAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISliderAutomationPeer { + type Vtable = ISliderAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xec30015a_d611_46d0_ae4f_6ecf27dfbaa5); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISliderAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISliderAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISliderAutomationPeerFactory { + type Vtable = ISliderAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x971b8056_9a7a_4df9_95fa_6f5c04c91cac); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISliderAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITextBlockAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITextBlockAutomationPeer { + type Vtable = ITextBlockAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbe2057f5_6715_4e69_a050_92bd0ce232a9); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITextBlockAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITextBlockAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITextBlockAutomationPeerFactory { + type Vtable = ITextBlockAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x76bf924b_7ca0_4b01_bc5c_a8cf4d3691de); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITextBlockAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITextBoxAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITextBoxAutomationPeer { + type Vtable = ITextBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3a4f1ca0_5e5d_4d26_9067_e740bf657a9f); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITextBoxAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITextBoxAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITextBoxAutomationPeerFactory { + type Vtable = ITextBoxAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x01f0c067_966b_4130_b872_469e42bd4a7f); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITextBoxAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IThumbAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IThumbAutomationPeer { + type Vtable = IThumbAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdc2949b5_b45e_4d6d_892f_d9422c950efb); +} +#[repr(C)] +#[doc(hidden)] +pub struct IThumbAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IThumbAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IThumbAutomationPeerFactory { + type Vtable = IThumbAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x970743ff_af41_4600_b55d_26d43df860e1); +} +#[repr(C)] +#[doc(hidden)] +pub struct IThumbAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITimePickerAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITimePickerAutomationPeer { + type Vtable = ITimePickerAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa43d44ef_3285_4df7_b4a4_e4cdf36a3a17); } -impl ::core::convert::From for AutomationPeer { - fn from(value: PersonPictureAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct ITimePickerAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITimePickerAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITimePickerAutomationPeerFactory { + type Vtable = ITimePickerAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x978f6671_47f8_40a7_9e21_68128b16b4fd); } -impl ::core::convert::From<&PersonPictureAutomationPeer> for AutomationPeer { - fn from(value: &PersonPictureAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct ITimePickerAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITimePickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITimePickerFlyoutPresenterAutomationPeer { + type Vtable = ITimePickerFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda93ee27_82f1_4701_8706_be297bf06043); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct ITimePickerFlyoutPresenterAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleButtonAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleButtonAutomationPeer { + type Vtable = IToggleButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62dbe6c5_bc0a_45bb_bf77_ea0f1502891f); } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IToggleButtonAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleButtonAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleButtonAutomationPeerFactory { + type Vtable = IToggleButtonAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9218cc4_ad4b_4d03_a6a4_7d59e6360004); } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PersonPictureAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } +#[repr(C)] +#[doc(hidden)] +pub struct IToggleButtonAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls_Primitives")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleMenuFlyoutItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleMenuFlyoutItemAutomationPeer { + type Vtable = IToggleMenuFlyoutItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6b57eafe_6af1_4903_8373_3437bf352345); } -impl ::core::convert::From<&PersonPictureAutomationPeer> for super::super::DependencyObject { - fn from(value: &PersonPictureAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } +#[repr(C)] +#[doc(hidden)] +pub struct IToggleMenuFlyoutItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleMenuFlyoutItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleMenuFlyoutItemAutomationPeerFactory { + type Vtable = IToggleMenuFlyoutItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94364b77_8f6c_4837_aae3_94d010d8d162); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } +#[repr(C)] +#[doc(hidden)] +pub struct IToggleMenuFlyoutItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleSwitchAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleSwitchAutomationPeer { + type Vtable = IToggleSwitchAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc011f174_e89e_4790_bf9a_78ebb5f59e9f); } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } +#[repr(C)] +#[doc(hidden)] +pub struct IToggleSwitchAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleSwitchAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleSwitchAutomationPeerFactory { + type Vtable = IToggleSwitchAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x31f933e3_fef8_4419_9df5_d9ef7196ea34); } -unsafe impl ::core::marker::Send for PersonPictureAutomationPeer {} -unsafe impl ::core::marker::Sync for PersonPictureAutomationPeer {} +#[repr(C)] +#[doc(hidden)] +pub struct IToggleSwitchAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); #[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -impl PickerFlyoutPresenterAutomationPeer { - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +#[doc(hidden)] +pub struct ITreeViewItemAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITreeViewItemAutomationPeer { + type Vtable = ITreeViewItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2331d648_b617_437f_920c_71d450503e65); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITreeViewItemAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITreeViewItemAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITreeViewItemAutomationPeerFactory { + type Vtable = ITreeViewItemAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73d388bf_1d01_4159_82c0_2b2996dbfdce); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITreeViewItemAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITreeViewListAutomationPeer(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITreeViewListAutomationPeer { + type Vtable = ITreeViewListAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71c1b5bc_bb29_4479_a8a8_606be6b823ae); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITreeViewListAutomationPeer_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITreeViewListAutomationPeerFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITreeViewListAutomationPeerFactory { + type Vtable = ITreeViewListAutomationPeerFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00f597e2_f811_475a_bfe6_290fe707fa88); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITreeViewListAutomationPeerFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Controls")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, owner: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Controls"))] usize, +); +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ImageAutomationPeer(pub ::windows::core::IInspectable); +impl ImageAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Image>>(owner: Param0) -> ::windows::core::Result { + Self::IImageAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IImageAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for PickerFlyoutPresenterAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PickerFlyoutPresenterAutomationPeer;{28414bf7-8382-4eae-93c1-d6f035aa8155})"); +unsafe impl ::windows::core::RuntimeType for ImageAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ImageAutomationPeer;{9b0bbf8c-60a2-48bf-ab2c-1a52a451d2d4})"); } -unsafe impl ::windows::core::Interface for PickerFlyoutPresenterAutomationPeer { - type Vtable = IPickerFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x28414bf7_8382_4eae_93c1_d6f035aa8155); +unsafe impl ::windows::core::Interface for ImageAutomationPeer { + type Vtable = IImageAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b0bbf8c_60a2_48bf_ab2c_1a52a451d2d4); } -impl ::windows::core::RuntimeName for PickerFlyoutPresenterAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PickerFlyoutPresenterAutomationPeer"; +impl ::windows::core::RuntimeName for ImageAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ImageAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ImageAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&ImageAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ImageAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ImageAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ImageAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ImageAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&ImageAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ImageAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ImageAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ImageAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ImageAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&ImageAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ImageAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ImageAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ImageAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ImageAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for AutomationPeer { - fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&ImageAutomationPeer> for AutomationPeer { + fn from(value: &ImageAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ImageAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ImageAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ImageAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for super::super::DependencyObject { - fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for PickerFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for PickerFlyoutPresenterAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PivotAutomationPeer(pub ::windows::core::IInspectable); -impl PivotAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontalScrollPercent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalScrollPercent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), horizontalamount, verticalamount).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), horizontalpercent, verticalpercent).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Pivot>>(owner: Param0) -> ::windows::core::Result { - Self::IPivotAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +impl ::core::convert::From<&ImageAutomationPeer> for super::super::DependencyObject { + fn from(value: &ImageAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ImageAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ImageAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +unsafe impl ::core::marker::Send for ImageAutomationPeer {} +unsafe impl ::core::marker::Sync for ImageAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct InkToolbarAutomationPeer(pub ::windows::core::IInspectable); +impl InkToolbarAutomationPeer {} +unsafe impl ::windows::core::RuntimeType for InkToolbarAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.InkToolbarAutomationPeer;{123baaa4-f2e8-4bcb-9382-5dfdd11fe45f})"); +} +unsafe impl ::windows::core::Interface for InkToolbarAutomationPeer { + type Vtable = IInkToolbarAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x123baaa4_f2e8_4bcb_9382_5dfdd11fe45f); +} +impl ::windows::core::RuntimeName for InkToolbarAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.InkToolbarAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: InkToolbarAutomationPeer) -> Self { + value.0 .0 } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&InkToolbarAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &InkToolbarAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: InkToolbarAutomationPeer) -> Self { + value.0 } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl ::core::convert::From<&InkToolbarAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &InkToolbarAutomationPeer) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: InkToolbarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&InkToolbarAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &InkToolbarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: InkToolbarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&InkToolbarAutomationPeer> for AutomationPeer { + fn from(value: &InkToolbarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: InkToolbarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&InkToolbarAutomationPeer> for super::super::DependencyObject { + fn from(value: &InkToolbarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &InkToolbarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for InkToolbarAutomationPeer {} +unsafe impl ::core::marker::Sync for InkToolbarAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ItemAutomationPeer(pub ::windows::core::IInspectable); +impl ItemAutomationPeer { + pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = self; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Realize(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ItemsControlAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { + Self::IItemAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IPivotAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for PivotAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PivotAutomationPeer;{e715a8f8-3b9d-402c-81e2-6e912ef58981})"); +unsafe impl ::windows::core::RuntimeType for ItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ItemAutomationPeer;{953c34f6-3b31-47a7-b3bf-25d3ae99c317})"); } -unsafe impl ::windows::core::Interface for PivotAutomationPeer { - type Vtable = IPivotAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe715a8f8_3b9d_402c_81e2_6e912ef58981); +unsafe impl ::windows::core::Interface for ItemAutomationPeer { + type Vtable = IItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x953c34f6_3b31_47a7_b3bf_25d3ae99c317); } -impl ::windows::core::RuntimeName for PivotAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PivotAutomationPeer"; +impl ::windows::core::RuntimeName for ItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ItemAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PivotAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ItemAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&PivotAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PivotAutomationPeer) -> Self { +impl ::core::convert::From<&ItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ItemAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ItemAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&PivotAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PivotAutomationPeer) -> Self { +impl ::core::convert::From<&ItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ItemAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollProvider { +impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: PivotAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ItemAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&PivotAutomationPeer> for super::Provider::IScrollProvider { +impl ::core::convert::TryFrom<&ItemAutomationPeer> for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &PivotAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ItemAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for PivotAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for ItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for &PivotAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &ItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: PivotAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) +impl ::core::convert::From for AutomationPeer { + fn from(value: ItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&PivotAutomationPeer> for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: &PivotAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) +impl ::core::convert::From<&ItemAutomationPeer> for AutomationPeer { + fn from(value: &ItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for PivotAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::windows::core::IntoParam::into_param(&self) +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &PivotAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&ItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &ItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for ItemAutomationPeer {} +unsafe impl ::core::marker::Sync for ItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ItemsControlAutomationPeer(pub ::windows::core::IInspectable); +impl ItemsControlAutomationPeer { + pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) + } + } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) + } + } + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ItemsControl>>(owner: Param0) -> ::windows::core::Result { + Self::IItemsControlAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IItemsControlAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } +} +unsafe impl ::windows::core::RuntimeType for ItemsControlAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ItemsControlAutomationPeer;{96e76bf1-37f7-4088-925d-65268e83e34d})"); +} +unsafe impl ::windows::core::Interface for ItemsControlAutomationPeer { + type Vtable = IItemsControlAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96e76bf1_37f7_4088_925d_65268e83e34d); +} +impl ::windows::core::RuntimeName for ItemsControlAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ItemsControlAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ItemsControlAutomationPeer) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&ItemsControlAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ItemsControlAutomationPeer) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ItemsControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ItemsControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) + } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ItemsControlAutomationPeer) -> Self { + value.0 + } +} +impl ::core::convert::From<&ItemsControlAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ItemsControlAutomationPeer) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ItemsControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ItemsControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { type Error = ::windows::core::Error; - fn try_from(value: PivotAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ItemsControlAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&PivotAutomationPeer> for super::Provider::IItemContainerProvider { +impl ::core::convert::TryFrom<&ItemsControlAutomationPeer> for super::Provider::IItemContainerProvider { type Error = ::windows::core::Error; - fn try_from(value: &PivotAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ItemsControlAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ItemsControlAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ItemsControlAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: PivotAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &PivotAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for PivotAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &PivotAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PivotAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ItemsControlAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PivotAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &PivotAutomationPeer) -> Self { +impl ::core::convert::From<&ItemsControlAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ItemsControlAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ItemsControlAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ItemsControlAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: PivotAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ItemsControlAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PivotAutomationPeer> for AutomationPeer { - fn from(value: &PivotAutomationPeer) -> Self { +impl ::core::convert::From<&ItemsControlAutomationPeer> for AutomationPeer { + fn from(value: &ItemsControlAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ItemsControlAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ItemsControlAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ItemsControlAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PivotAutomationPeer> for super::super::DependencyObject { - fn from(value: &PivotAutomationPeer) -> Self { +impl ::core::convert::From<&ItemsControlAutomationPeer> for super::super::DependencyObject { + fn from(value: &ItemsControlAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ItemsControlAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ItemsControlAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for PivotAutomationPeer {} -unsafe impl ::core::marker::Sync for PivotAutomationPeer {} +unsafe impl ::core::marker::Send for ItemsControlAutomationPeer {} +unsafe impl ::core::marker::Sync for ItemsControlAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PivotItemAutomationPeer(pub ::windows::core::IInspectable); -impl PivotItemAutomationPeer { +pub struct ListBoxAutomationPeer(pub ::windows::core::IInspectable); +impl ListBoxAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::PivotItem>>(owner: Param0) -> ::windows::core::Result { - Self::IPivotItemAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListBox>>(owner: Param0) -> ::windows::core::Result { + Self::IListBoxAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn IListBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ListBoxAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListBoxAutomationPeer;{8cd0d608-b402-4a6e-bd9a-343f8845eb32})"); +} +unsafe impl ::windows::core::Interface for ListBoxAutomationPeer { + type Vtable = IListBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8cd0d608_b402_4a6e_bd9a_343f8845eb32); +} +impl ::windows::core::RuntimeName for ListBoxAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListBoxAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListBoxAutomationPeer) -> Self { + value.0 .0 } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListBoxAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListBoxAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListBoxAutomationPeer) -> Self { + value.0 } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListBoxAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListBoxAutomationPeer) -> Self { + value.0.clone() } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: ListBoxAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ListBoxAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ListBoxAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn IPivotItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -unsafe impl ::windows::core::RuntimeType for PivotItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PivotItemAutomationPeer;{1a4241ad-5d55-4d27-b40f-2d37506fbe78})"); +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: ListBoxAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } } -unsafe impl ::windows::core::Interface for PivotItemAutomationPeer { - type Vtable = IPivotItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a4241ad_5d55_4d27_b40f_2d37506fbe78); +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ListBoxAutomationPeer> for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ListBoxAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } } -impl ::windows::core::RuntimeName for PivotItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PivotItemAutomationPeer"; +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::windows::core::IntoParam::into_param(&self) + } } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PivotItemAutomationPeer) -> Self { - value.0 .0 +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From<&PivotItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PivotItemAutomationPeer) -> Self { - value.0 .0.clone() +impl ::core::convert::From for SelectorAutomationPeer { + fn from(value: ListBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) +impl ::core::convert::From<&ListBoxAutomationPeer> for SelectorAutomationPeer { + fn from(value: &ListBoxAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotItemAutomationPeer) -> Self { - value.0 +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From<&PivotItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PivotItemAutomationPeer) -> Self { - value.0.clone() +impl ::core::convert::From for ItemsControlAutomationPeer { + fn from(value: ListBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) +impl ::core::convert::From<&ListBoxAutomationPeer> for ItemsControlAutomationPeer { + fn from(value: &ListBoxAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PivotItemAutomationPeer) -> Self { +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &ListBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ListBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PivotItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &PivotItemAutomationPeer) -> Self { +impl ::core::convert::From<&ListBoxAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ListBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PivotItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PivotItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: PivotItemAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ListBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PivotItemAutomationPeer> for AutomationPeer { - fn from(value: &PivotItemAutomationPeer) -> Self { +impl ::core::convert::From<&ListBoxAutomationPeer> for AutomationPeer { + fn from(value: &ListBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PivotItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PivotItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotItemAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PivotItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &PivotItemAutomationPeer) -> Self { +impl ::core::convert::From<&ListBoxAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for PivotItemAutomationPeer {} -unsafe impl ::core::marker::Sync for PivotItemAutomationPeer {} +unsafe impl ::core::marker::Send for ListBoxAutomationPeer {} +unsafe impl ::core::marker::Sync for ListBoxAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PivotItemDataAutomationPeer(pub ::windows::core::IInspectable); -impl PivotItemDataAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, PivotAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { - Self::IPivotItemDataAutomationPeerFactory(|this| unsafe { +pub struct ListBoxItemAutomationPeer(pub ::windows::core::IInspectable); +impl ListBoxItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListBoxItem>>(owner: Param0) -> ::windows::core::Result { + Self::IListBoxItemAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IListBoxItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +unsafe impl ::windows::core::RuntimeType for ListBoxItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListBoxItemAutomationPeer;{1bc6e1c6-2997-42df-99eb-92bc1dd149fb})"); +} +unsafe impl ::windows::core::Interface for ListBoxItemAutomationPeer { + type Vtable = IListBoxItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1bc6e1c6_2997_42df_99eb_92bc1dd149fb); +} +impl ::windows::core::RuntimeName for ListBoxItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListBoxItemAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListBoxItemAutomationPeer) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&ListBoxItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListBoxItemAutomationPeer) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListBoxItemAutomationPeer) -> Self { + value.0 } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListBoxItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListBoxItemAutomationPeer) -> Self { + value.0.clone() } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ListBoxItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListBoxItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ListBoxItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ListBoxItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListBoxItemAutomationPeer> for AutomationPeer { + fn from(value: &ListBoxItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListBoxItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ListBoxItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListBoxItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListBoxItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for ListBoxItemAutomationPeer {} +unsafe impl ::core::marker::Sync for ListBoxItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ListBoxItemDataAutomationPeer(pub ::windows::core::IInspectable); +impl ListBoxItemDataAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ListBoxAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { + Self::IListBoxItemDataAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IPivotItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IListBoxItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for PivotItemDataAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PivotItemDataAutomationPeer;{a2a3b788-ea1d-48b7-88ee-f08b6aa07fee})"); +unsafe impl ::windows::core::RuntimeType for ListBoxItemDataAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListBoxItemDataAutomationPeer;{fd7d5fee-fde0-482a-8084-dcebba5b9806})"); } -unsafe impl ::windows::core::Interface for PivotItemDataAutomationPeer { - type Vtable = IPivotItemDataAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa2a3b788_ea1d_48b7_88ee_f08b6aa07fee); +unsafe impl ::windows::core::Interface for ListBoxItemDataAutomationPeer { + type Vtable = IListBoxItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfd7d5fee_fde0_482a_8084_dcebba5b9806); } -impl ::windows::core::RuntimeName for PivotItemDataAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PivotItemDataAutomationPeer"; +impl ::windows::core::RuntimeName for ListBoxItemDataAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListBoxItemDataAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListBoxItemDataAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&PivotItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListBoxItemDataAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListBoxItemDataAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&PivotItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListBoxItemDataAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { +impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { type Error = ::windows::core::Error; - fn try_from(value: PivotItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ListBoxItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&PivotItemDataAutomationPeer> for super::Provider::IScrollItemProvider { +impl ::core::convert::TryFrom<&ListBoxItemDataAutomationPeer> for super::Provider::IScrollItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &PivotItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ListBoxItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { +impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: PivotItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ListBoxItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&PivotItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { +impl ::core::convert::TryFrom<&ListBoxItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &PivotItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ListBoxItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { +impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: PivotItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ListBoxItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&PivotItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { +impl ::core::convert::TryFrom<&ListBoxItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &PivotItemDataAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ListBoxItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From for SelectorItemAutomationPeer { + fn from(value: ListBoxItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for SelectorItemAutomationPeer { + fn from(value: &ListBoxItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for ListBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &ListBoxItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for ItemAutomationPeer { + fn from(value: ListBoxItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PivotItemDataAutomationPeer> for ItemAutomationPeer { - fn from(value: &PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for ItemAutomationPeer { + fn from(value: &ListBoxItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ListBoxItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PivotItemDataAutomationPeer> for AutomationPeer { - fn from(value: &PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for AutomationPeer { + fn from(value: &ListBoxItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListBoxItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&PivotItemDataAutomationPeer> for super::super::DependencyObject { - fn from(value: &PivotItemDataAutomationPeer) -> Self { +impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListBoxItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotItemDataAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListBoxItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for PivotItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for PivotItemDataAutomationPeer {} +unsafe impl ::core::marker::Send for ListBoxItemDataAutomationPeer {} +unsafe impl ::core::marker::Sync for ListBoxItemDataAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ProgressBarAutomationPeer(pub ::windows::core::IInspectable); -impl ProgressBarAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ProgressBar>>(owner: Param0) -> ::windows::core::Result { - Self::IProgressBarAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } +pub struct ListPickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +impl ListPickerFlyoutPresenterAutomationPeer {} +unsafe impl ::windows::core::RuntimeType for ListPickerFlyoutPresenterAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListPickerFlyoutPresenterAutomationPeer;{56dfdc58-2395-4060-8047-8ea463698a24})"); +} +unsafe impl ::windows::core::Interface for ListPickerFlyoutPresenterAutomationPeer { + type Vtable = IListPickerFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56dfdc58_2395_4060_8047_8ea463698a24); +} +impl ::windows::core::RuntimeName for ListPickerFlyoutPresenterAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListPickerFlyoutPresenterAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { + value.0 .0 } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { + value.0 } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { + value.0.clone() } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for AutomationPeer { + fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListPickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +unsafe impl ::core::marker::Send for ListPickerFlyoutPresenterAutomationPeer {} +unsafe impl ::core::marker::Sync for ListPickerFlyoutPresenterAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ListViewAutomationPeer(pub ::windows::core::IInspectable); +impl ListViewAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListView>>(owner: Param0) -> ::windows::core::Result { + Self::IListViewAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + pub fn IListViewAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ListViewAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewAutomationPeer;{73cecc87-c0dc-4260-9148-75e9864a7230})"); +} +unsafe impl ::windows::core::Interface for ListViewAutomationPeer { + type Vtable = IListViewAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73cecc87_c0dc_4260_9148_75e9864a7230); +} +impl ::windows::core::RuntimeName for ListViewAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListViewAutomationPeer) -> Self { + value.0 .0 } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListViewAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListViewAutomationPeer) -> Self { + value.0 } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListViewAutomationPeer) -> Self { + value.0.clone() } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IDropTargetProvider { + type Error = ::windows::core::Error; + fn try_from(value: ListViewAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ListViewAutomationPeer> for super::Provider::IDropTargetProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ListViewAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for &ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: ListViewAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ListViewAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ListViewAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: ListViewAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ListViewAutomationPeer> for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ListViewAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for ListViewBaseAutomationPeer { + fn from(value: ListViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&ListViewAutomationPeer> for ListViewBaseAutomationPeer { + fn from(value: &ListViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer> for &ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl ::core::convert::From for SelectorAutomationPeer { + fn from(value: ListViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListViewAutomationPeer> for SelectorAutomationPeer { + fn from(value: &ListViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ItemsControlAutomationPeer { + fn from(value: ListViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListViewAutomationPeer> for ItemsControlAutomationPeer { + fn from(value: &ListViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ListViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsReadOnly(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ListViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Maximum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Minimum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ListViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewAutomationPeer> for AutomationPeer { + fn from(value: &ListViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Value(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetValue2(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListViewAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ListViewAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListViewAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ListViewAutomationPeer {} +unsafe impl ::core::marker::Sync for ListViewAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ListViewBaseAutomationPeer(pub ::windows::core::IInspectable); +impl ListViewBaseAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn DropEffect(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn DropEffects(&self) -> ::windows::core::Result<::windows::core::Array<::windows::core::HSTRING>> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::Array<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), ::windows::core::Array::<::windows::core::HSTRING>::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListViewBase>>(owner: Param0) -> ::windows::core::Result { + Self::IListViewBaseAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IProgressBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IListViewBaseAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ProgressBarAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ProgressBarAutomationPeer;{93f48f86-d840-4fb6-ac2f-5f779b854b0d})"); +unsafe impl ::windows::core::RuntimeType for ListViewBaseAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewBaseAutomationPeer;{87ec7649-b83d-4e55-9afd-bd835e748f5c})"); } -unsafe impl ::windows::core::Interface for ProgressBarAutomationPeer { - type Vtable = IProgressBarAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93f48f86_d840_4fb6_ac2f_5f779b854b0d); +unsafe impl ::windows::core::Interface for ListViewBaseAutomationPeer { + type Vtable = IListViewBaseAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x87ec7649_b83d_4e55_9afd_bd835e748f5c); } -impl ::windows::core::RuntimeName for ProgressBarAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ProgressBarAutomationPeer"; +impl ::windows::core::RuntimeName for ListViewBaseAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewBaseAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListViewBaseAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ProgressBarAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewBaseAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListViewBaseAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListViewBaseAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ProgressBarAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewBaseAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListViewBaseAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom for super::Provider::IDropTargetProvider { type Error = ::windows::core::Error; - fn try_from(value: ProgressBarAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ListViewBaseAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ProgressBarAutomationPeer> for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom<&ListViewBaseAutomationPeer> for super::Provider::IDropTargetProvider { type Error = ::windows::core::Error; - fn try_from(value: &ProgressBarAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ListViewBaseAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IDropTargetProvider> for &ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IDropTargetProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: ListViewBaseAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ListViewBaseAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ListViewBaseAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: ListViewBaseAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ListViewBaseAutomationPeer> for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ListViewBaseAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for ProgressBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { - ::windows::core::IntoParam::into_param(&self) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for SelectorAutomationPeer { + fn from(value: ListViewBaseAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&ListViewBaseAutomationPeer> for SelectorAutomationPeer { + fn from(value: &ListViewBaseAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &ProgressBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for RangeBaseAutomationPeer { - fn from(value: ProgressBarAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for ItemsControlAutomationPeer { + fn from(value: ListViewBaseAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ProgressBarAutomationPeer> for RangeBaseAutomationPeer { - fn from(value: &ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewBaseAutomationPeer> for ItemsControlAutomationPeer { + fn from(value: &ListViewBaseAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for ProgressBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for &ProgressBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &ListViewBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ListViewBaseAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ProgressBarAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewBaseAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ListViewBaseAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ListViewBaseAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ProgressBarAutomationPeer> for AutomationPeer { - fn from(value: &ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewBaseAutomationPeer> for AutomationPeer { + fn from(value: &ListViewBaseAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListViewBaseAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ProgressBarAutomationPeer> for super::super::DependencyObject { - fn from(value: &ProgressBarAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewBaseAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListViewBaseAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ProgressBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ProgressBarAutomationPeer {} -unsafe impl ::core::marker::Sync for ProgressBarAutomationPeer {} +unsafe impl ::core::marker::Send for ListViewBaseAutomationPeer {} +unsafe impl ::core::marker::Sync for ListViewBaseAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ProgressRingAutomationPeer(pub ::windows::core::IInspectable); -impl ProgressRingAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ProgressRing>>(owner: Param0) -> ::windows::core::Result { - Self::IProgressRingAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +pub struct ListViewBaseHeaderItemAutomationPeer(pub ::windows::core::IInspectable); +impl ListViewBaseHeaderItemAutomationPeer {} +unsafe impl ::windows::core::RuntimeType for ListViewBaseHeaderItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewBaseHeaderItemAutomationPeer;{7cb8b732-c1f0-4a3c-bc14-85dd48dedb85})"); +} +unsafe impl ::windows::core::Interface for ListViewBaseHeaderItemAutomationPeer { + type Vtable = IListViewBaseHeaderItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7cb8b732_c1f0_4a3c_bc14_85dd48dedb85); +} +impl ::windows::core::RuntimeName for ListViewBaseHeaderItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewBaseHeaderItemAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { + value.0 } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { + value.0.clone() } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for AutomationPeer { + fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewBaseHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IProgressRingAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); +} +unsafe impl ::core::marker::Send for ListViewBaseHeaderItemAutomationPeer {} +unsafe impl ::core::marker::Sync for ListViewBaseHeaderItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ListViewHeaderItemAutomationPeer(pub ::windows::core::IInspectable); +impl ListViewHeaderItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListViewHeaderItem>>(owner: Param0) -> ::windows::core::Result { + Self::IListViewHeaderItemAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IListViewHeaderItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ProgressRingAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ProgressRingAutomationPeer;{bc305eee-39d3-4eeb-ac33-2394de123e2e})"); +unsafe impl ::windows::core::RuntimeType for ListViewHeaderItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewHeaderItemAutomationPeer;{67ab1e4b-ad61-4c88-ba45-0f3a8d061f8f})"); } -unsafe impl ::windows::core::Interface for ProgressRingAutomationPeer { - type Vtable = IProgressRingAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbc305eee_39d3_4eeb_ac33_2394de123e2e); +unsafe impl ::windows::core::Interface for ListViewHeaderItemAutomationPeer { + type Vtable = IListViewHeaderItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ab1e4b_ad61_4c88_ba45_0f3a8d061f8f); } -impl ::windows::core::RuntimeName for ProgressRingAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ProgressRingAutomationPeer"; +impl ::windows::core::RuntimeName for ListViewHeaderItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewHeaderItemAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListViewHeaderItemAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ProgressRingAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListViewHeaderItemAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ProgressRingAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From for ListViewBaseHeaderItemAutomationPeer { + fn from(value: ListViewHeaderItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for ListViewBaseHeaderItemAutomationPeer { + fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewBaseHeaderItemAutomationPeer> for ListViewHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseHeaderItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewBaseHeaderItemAutomationPeer> for &ListViewHeaderItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewBaseHeaderItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ListViewHeaderItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ProgressRingAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ListViewHeaderItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ProgressRingAutomationPeer> for AutomationPeer { - fn from(value: &ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for AutomationPeer { + fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListViewHeaderItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ProgressRingAutomationPeer> for super::super::DependencyObject { - fn from(value: &ProgressRingAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ProgressRingAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewHeaderItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ProgressRingAutomationPeer {} -unsafe impl ::core::marker::Sync for ProgressRingAutomationPeer {} +unsafe impl ::core::marker::Send for ListViewHeaderItemAutomationPeer {} +unsafe impl ::core::marker::Sync for ListViewHeaderItemAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RadioButtonAutomationPeer(pub ::windows::core::IInspectable); -impl RadioButtonAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } - } +pub struct ListViewItemAutomationPeer(pub ::windows::core::IInspectable); +impl ListViewItemAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RadioButton>>(owner: Param0) -> ::windows::core::Result { - Self::IRadioButtonAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListViewItem>>(owner: Param0) -> ::windows::core::Result { + Self::IListViewItemAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } + pub fn IListViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ListViewItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewItemAutomationPeer;{ca114e70-a16d-4d09-a1cf-1856ef98a9ec})"); +} +unsafe impl ::windows::core::Interface for ListViewItemAutomationPeer { + type Vtable = IListViewItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xca114e70_a16d_4d09_a1cf_1856ef98a9ec); +} +impl ::windows::core::RuntimeName for ListViewItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewItemAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListViewItemAutomationPeer) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&ListViewItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListViewItemAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListViewItemAutomationPeer) -> Self { + value.0 } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListViewItemAutomationPeer) -> Self { + value.0.clone() } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ListViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ListViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ToggleState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Toggle(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ListViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewItemAutomationPeer> for AutomationPeer { + fn from(value: &ListViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ListViewItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for ListViewItemAutomationPeer {} +unsafe impl ::core::marker::Sync for ListViewItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ListViewItemDataAutomationPeer(pub ::windows::core::IInspectable); +impl ListViewItemDataAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { + Self::IListViewItemDataAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IRadioButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IListViewItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for RadioButtonAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RadioButtonAutomationPeer;{7e6a5ed8-0b30-4743-b102-dcdf548e3131})"); +unsafe impl ::windows::core::RuntimeType for ListViewItemDataAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ListViewItemDataAutomationPeer;{15a8d7fd-d7a5-4a6c-963c-6f7ce464671a})"); } -unsafe impl ::windows::core::Interface for RadioButtonAutomationPeer { - type Vtable = IRadioButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e6a5ed8_0b30_4743_b102_dcdf548e3131); +unsafe impl ::windows::core::Interface for ListViewItemDataAutomationPeer { + type Vtable = IListViewItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15a8d7fd_d7a5_4a6c_963c_6f7ce464671a); } -impl ::windows::core::RuntimeName for RadioButtonAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RadioButtonAutomationPeer"; +impl ::windows::core::RuntimeName for ListViewItemDataAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ListViewItemDataAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListViewItemDataAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&RadioButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewItemDataAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ListViewItemDataAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RadioButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RadioButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListViewItemDataAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&RadioButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewItemDataAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ListViewItemDataAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RadioButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RadioButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { +impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { type Error = ::windows::core::Error; - fn try_from(value: RadioButtonAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ListViewItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&RadioButtonAutomationPeer> for super::Provider::ISelectionItemProvider { +impl ::core::convert::TryFrom<&ListViewItemDataAutomationPeer> for super::Provider::IScrollItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &RadioButtonAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ListViewItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: RadioButtonAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ListViewItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&RadioButtonAutomationPeer> for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom<&ListViewItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &RadioButtonAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ListViewItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for ToggleButtonAutomationPeer { - fn from(value: RadioButtonAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: ListViewItemDataAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } } -impl ::core::convert::From<&RadioButtonAutomationPeer> for ToggleButtonAutomationPeer { - fn from(value: &RadioButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ListViewItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ListViewItemDataAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } } -impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::windows::core::IntoParam::into_param(&self) } } -impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for &RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for ButtonBaseAutomationPeer { - fn from(value: RadioButtonAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for SelectorItemAutomationPeer { + fn from(value: ListViewItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RadioButtonAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewItemDataAutomationPeer> for SelectorItemAutomationPeer { + fn from(value: &ListViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for &ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RadioButtonAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for ItemAutomationPeer { + fn from(value: ListViewItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RadioButtonAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewItemDataAutomationPeer> for ItemAutomationPeer { + fn from(value: &ListViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &ListViewItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ListViewItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RadioButtonAutomationPeer> for AutomationPeer { - fn from(value: &RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewItemDataAutomationPeer> for AutomationPeer { + fn from(value: &ListViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RadioButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ListViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RadioButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ListViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListViewItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RadioButtonAutomationPeer> for super::super::DependencyObject { - fn from(value: &RadioButtonAutomationPeer) -> Self { +impl ::core::convert::From<&ListViewItemDataAutomationPeer> for super::super::DependencyObject { + fn from(value: &ListViewItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RadioButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RadioButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for RadioButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for RadioButtonAutomationPeer {} +unsafe impl ::core::marker::Send for ListViewItemDataAutomationPeer {} +unsafe impl ::core::marker::Sync for ListViewItemDataAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RangeBaseAutomationPeer(pub ::windows::core::IInspectable); -impl RangeBaseAutomationPeer { +pub struct LoopingSelectorAutomationPeer(pub ::windows::core::IInspectable); +impl LoopingSelectorAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsReadOnly(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandCollapseState(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { + let mut result__: super::ExpandCollapseState = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } + } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Collapse(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } + } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Expand(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } + } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) + } + } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalScrollPercent(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Maximum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalViewSize(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Minimum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticallyScrollable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalScrollPercent(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Value(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalViewSize(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetValue(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } + pub fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), horizontalamount, verticalamount).ok() } } - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::RangeBase>>(owner: Param0) -> ::windows::core::Result { - Self::IRangeBaseAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), horizontalpercent, verticalpercent).ok() } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn CanSelectMultiple(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetValue2<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn IsSelectionRequired(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: ::windows::core::Array = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) } } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for LoopingSelectorAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.LoopingSelectorAutomationPeer;{50b406ca-bae9-4816-8a3a-0cb4f96478a2})"); +} +unsafe impl ::windows::core::Interface for LoopingSelectorAutomationPeer { + type Vtable = ILoopingSelectorAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x50b406ca_bae9_4816_8a3a_0cb4f96478a2); +} +impl ::windows::core::RuntimeName for LoopingSelectorAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.LoopingSelectorAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: LoopingSelectorAutomationPeer) -> Self { + value.0 .0 } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelectorAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &LoopingSelectorAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: LoopingSelectorAutomationPeer) -> Self { + value.0 } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&LoopingSelectorAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &LoopingSelectorAutomationPeer) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&LoopingSelectorAutomationPeer> for super::Provider::IExpandCollapseProvider { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for &LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&LoopingSelectorAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IScrollProvider { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&LoopingSelectorAutomationPeer> for super::Provider::IScrollProvider { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for &LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&LoopingSelectorAutomationPeer> for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: LoopingSelectorAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelectorAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &LoopingSelectorAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: LoopingSelectorAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelectorAutomationPeer> for AutomationPeer { + fn from(value: &LoopingSelectorAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: LoopingSelectorAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelectorAutomationPeer> for super::super::DependencyObject { + fn from(value: &LoopingSelectorAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for LoopingSelectorAutomationPeer {} +unsafe impl ::core::marker::Sync for LoopingSelectorAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct LoopingSelectorItemAutomationPeer(pub ::windows::core::IInspectable); +impl LoopingSelectorItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn IsSelected(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SelectionContainer(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn AddToSelection(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Select(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for LoopingSelectorItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.LoopingSelectorItemAutomationPeer;{d3fa68bf-04cf-4f4c-8d3e-4780a19d4788})"); +} +unsafe impl ::windows::core::Interface for LoopingSelectorItemAutomationPeer { + type Vtable = ILoopingSelectorItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3fa68bf_04cf_4f4c_8d3e_4780a19d4788); +} +impl ::windows::core::RuntimeName for LoopingSelectorItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.LoopingSelectorItemAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: LoopingSelectorItemAutomationPeer) -> Self { + value.0 .0 } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { + value.0 .0.clone() } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: LoopingSelectorItemAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { + value.0.clone() } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorItemAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&LoopingSelectorItemAutomationPeer> for super::Provider::IScrollItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorItemAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorItemAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&LoopingSelectorItemAutomationPeer> for super::Provider::ISelectionItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorItemAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: LoopingSelectorItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: LoopingSelectorItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for AutomationPeer { + fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: LoopingSelectorItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IRangeBaseAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } +} +unsafe impl ::core::marker::Send for LoopingSelectorItemAutomationPeer {} +unsafe impl ::core::marker::Sync for LoopingSelectorItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct LoopingSelectorItemDataAutomationPeer(pub ::windows::core::IInspectable); +impl LoopingSelectorItemDataAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Realize(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } } -unsafe impl ::windows::core::RuntimeType for RangeBaseAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RangeBaseAutomationPeer;{e454b549-4b2c-42ad-b04b-d35947d1ee50})"); +unsafe impl ::windows::core::RuntimeType for LoopingSelectorItemDataAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.LoopingSelectorItemDataAutomationPeer;{ef567e32-7cd2-4d32-9590-1f588d5ef38d})"); } -unsafe impl ::windows::core::Interface for RangeBaseAutomationPeer { - type Vtable = IRangeBaseAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe454b549_4b2c_42ad_b04b_d35947d1ee50); +unsafe impl ::windows::core::Interface for LoopingSelectorItemDataAutomationPeer { + type Vtable = ILoopingSelectorItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef567e32_7cd2_4d32_9590_1f588d5ef38d); } -impl ::windows::core::RuntimeName for RangeBaseAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RangeBaseAutomationPeer"; +impl ::windows::core::RuntimeName for LoopingSelectorItemDataAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.LoopingSelectorItemDataAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RangeBaseAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&RangeBaseAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RangeBaseAutomationPeer) -> Self { +impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RangeBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RangeBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RangeBaseAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&RangeBaseAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RangeBaseAutomationPeer) -> Self { +impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RangeBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RangeBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: RangeBaseAutomationPeer) -> ::windows::core::Result { + fn try_from(value: LoopingSelectorItemDataAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&RangeBaseAutomationPeer> for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom<&LoopingSelectorItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &RangeBaseAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &LoopingSelectorItemDataAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for RangeBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for LoopingSelectorItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &RangeBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RangeBaseAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RangeBaseAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RangeBaseAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RangeBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RangeBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &LoopingSelectorItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: RangeBaseAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RangeBaseAutomationPeer> for AutomationPeer { - fn from(value: &RangeBaseAutomationPeer) -> Self { +impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for AutomationPeer { + fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RangeBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for LoopingSelectorItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RangeBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &LoopingSelectorItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RangeBaseAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RangeBaseAutomationPeer> for super::super::DependencyObject { - fn from(value: &RangeBaseAutomationPeer) -> Self { +impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for super::super::DependencyObject { + fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RangeBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RangeBaseAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorItemDataAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for RangeBaseAutomationPeer {} -unsafe impl ::core::marker::Sync for RangeBaseAutomationPeer {} +unsafe impl ::core::marker::Send for LoopingSelectorItemDataAutomationPeer {} +unsafe impl ::core::marker::Sync for LoopingSelectorItemDataAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RatingControlAutomationPeer(pub ::windows::core::IInspectable); -impl RatingControlAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RatingControl>>(owner: Param0) -> ::windows::core::Result { - Self::IRatingControlAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; +pub struct MapControlAutomationPeer(pub ::windows::core::IInspectable); +impl MapControlAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn HorizontalScrollPercent(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn HorizontalViewSize(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn VerticallyScrollable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn VerticalScrollPercent(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn VerticalViewSize(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), horizontalamount, verticalamount).ok() } } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), horizontalpercent, verticalpercent).ok() } } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn CanMove(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn CanResize(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn CanRotate(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Move(&self, x: f64, y: f64) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), x, y).ok() } } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Resize(&self, width: f64, height: f64) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), width, height).ok() } } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Rotate(&self, degrees: f64) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), degrees).ok() } } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn CanZoom(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ZoomLevel(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn MaxZoom(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn MinZoom(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Zoom(&self, zoom: f64) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), zoom).ok() } } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ZoomByUnit(&self, zoomunit: super::ZoomUnit) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), zoomunit).ok() } } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for MapControlAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MapControlAutomationPeer;{425beee4-f2e8-4bcb-9382-5dfdd11fe45f})"); +} +unsafe impl ::windows::core::Interface for MapControlAutomationPeer { + type Vtable = IMapControlAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x425beee4_f2e8_4bcb_9382_5dfdd11fe45f); +} +impl ::windows::core::RuntimeName for MapControlAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MapControlAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MapControlAutomationPeer) -> Self { + value.0 .0 } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MapControlAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &MapControlAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MapControlAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MapControlAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &MapControlAutomationPeer) -> Self { + value.0.clone() } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IScrollProvider { + type Error = ::windows::core::Error; + fn try_from(value: MapControlAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&MapControlAutomationPeer> for super::Provider::IScrollProvider { + type Error = ::windows::core::Error; + fn try_from(value: &MapControlAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for &MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ITransformProvider { + type Error = ::windows::core::Error; + fn try_from(value: MapControlAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&MapControlAutomationPeer> for super::Provider::ITransformProvider { + type Error = ::windows::core::Error; + fn try_from(value: &MapControlAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ITransformProvider> for MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ITransformProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ITransformProvider> for &MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ITransformProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ITransformProvider2 { + type Error = ::windows::core::Error; + fn try_from(value: MapControlAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&MapControlAutomationPeer> for super::Provider::ITransformProvider2 { + type Error = ::windows::core::Error; + fn try_from(value: &MapControlAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ITransformProvider2> for MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ITransformProvider2> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ITransformProvider2> for &MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ITransformProvider2> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: MapControlAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MapControlAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &MapControlAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: MapControlAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&MapControlAutomationPeer> for AutomationPeer { + fn from(value: &MapControlAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MapControlAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MapControlAutomationPeer> for super::super::DependencyObject { + fn from(value: &MapControlAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for MapControlAutomationPeer {} +unsafe impl ::core::marker::Sync for MapControlAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct MediaElementAutomationPeer(pub ::windows::core::IInspectable); +impl MediaElementAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MediaElement>>(owner: Param0) -> ::windows::core::Result { + Self::IMediaElementAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IRatingControlAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IMediaElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for RatingControlAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RatingControlAutomationPeer;{3d14349a-9963-4a47-823c-f457cb3209d5})"); +unsafe impl ::windows::core::RuntimeType for MediaElementAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MediaElementAutomationPeer;{ba0b9fc2-a6e2-41a5-b17a-d1594613efba})"); } -unsafe impl ::windows::core::Interface for RatingControlAutomationPeer { - type Vtable = IRatingControlAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d14349a_9963_4a47_823c_f457cb3209d5); +unsafe impl ::windows::core::Interface for MediaElementAutomationPeer { + type Vtable = IMediaElementAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xba0b9fc2_a6e2_41a5_b17a_d1594613efba); } -impl ::windows::core::RuntimeName for RatingControlAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RatingControlAutomationPeer"; +impl ::windows::core::RuntimeName for MediaElementAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MediaElementAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RatingControlAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MediaElementAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&RatingControlAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RatingControlAutomationPeer) -> Self { +impl ::core::convert::From<&MediaElementAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &MediaElementAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RatingControlAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MediaElementAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&RatingControlAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RatingControlAutomationPeer) -> Self { +impl ::core::convert::From<&MediaElementAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &MediaElementAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RatingControlAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: MediaElementAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RatingControlAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RatingControlAutomationPeer) -> Self { +impl ::core::convert::From<&MediaElementAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &MediaElementAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: RatingControlAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: MediaElementAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RatingControlAutomationPeer> for AutomationPeer { - fn from(value: &RatingControlAutomationPeer) -> Self { +impl ::core::convert::From<&MediaElementAutomationPeer> for AutomationPeer { + fn from(value: &MediaElementAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RatingControlAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MediaElementAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RatingControlAutomationPeer> for super::super::DependencyObject { - fn from(value: &RatingControlAutomationPeer) -> Self { +impl ::core::convert::From<&MediaElementAutomationPeer> for super::super::DependencyObject { + fn from(value: &MediaElementAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RatingControlAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MediaElementAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for RatingControlAutomationPeer {} -unsafe impl ::core::marker::Sync for RatingControlAutomationPeer {} -#[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] -#[repr(C)] -pub struct RawElementProviderRuntimeId { - pub Part1: u32, - pub Part2: u32, -} -impl RawElementProviderRuntimeId {} -impl ::core::default::Default for RawElementProviderRuntimeId { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -impl ::core::fmt::Debug for RawElementProviderRuntimeId { - fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - fmt.debug_struct("RawElementProviderRuntimeId").field("Part1", &self.Part1).field("Part2", &self.Part2).finish() +unsafe impl ::core::marker::Send for MediaElementAutomationPeer {} +unsafe impl ::core::marker::Sync for MediaElementAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct MediaPlayerElementAutomationPeer(pub ::windows::core::IInspectable); +impl MediaPlayerElementAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MediaPlayerElement>>(owner: Param0) -> ::windows::core::Result { + Self::IMediaPlayerElementAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } -} -impl ::core::cmp::PartialEq for RawElementProviderRuntimeId { - fn eq(&self, other: &Self) -> bool { - self.Part1 == other.Part1 && self.Part2 == other.Part2 + pub fn IMediaPlayerElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } } -impl ::core::cmp::Eq for RawElementProviderRuntimeId {} -unsafe impl ::windows::core::Abi for RawElementProviderRuntimeId { - type Abi = Self; +unsafe impl ::windows::core::RuntimeType for MediaPlayerElementAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MediaPlayerElementAutomationPeer;{02bed209-3f65-4fdd-b5ca-c4750d4e6ea4})"); } -unsafe impl ::windows::core::RuntimeType for RawElementProviderRuntimeId { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"struct(Windows.UI.Xaml.Automation.Peers.RawElementProviderRuntimeId;u4;u4)"); +unsafe impl ::windows::core::Interface for MediaPlayerElementAutomationPeer { + type Vtable = IMediaPlayerElementAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02bed209_3f65_4fdd_b5ca_c4750d4e6ea4); } -impl ::windows::core::DefaultType for RawElementProviderRuntimeId { - type DefaultType = Self; +impl ::windows::core::RuntimeName for MediaPlayerElementAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MediaPlayerElementAutomationPeer"; } -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RepeatButtonAutomationPeer(pub ::windows::core::IInspectable); -impl RepeatButtonAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Invoke(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MediaPlayerElementAutomationPeer) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::RepeatButton>>(owner: Param0) -> ::windows::core::Result { - Self::IRepeatButtonAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) +} +impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &MediaPlayerElementAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MediaPlayerElementAutomationPeer) -> Self { + value.0 } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &MediaPlayerElementAutomationPeer) -> Self { + value.0.clone() } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: MediaPlayerElementAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &MediaPlayerElementAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: MediaPlayerElementAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for AutomationPeer { + fn from(value: &MediaPlayerElementAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MediaPlayerElementAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for super::super::DependencyObject { + fn from(value: &MediaPlayerElementAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MediaPlayerElementAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +} +unsafe impl ::core::marker::Send for MediaPlayerElementAutomationPeer {} +unsafe impl ::core::marker::Sync for MediaPlayerElementAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct MediaTransportControlsAutomationPeer(pub ::windows::core::IInspectable); +impl MediaTransportControlsAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MediaTransportControls>>(owner: Param0) -> ::windows::core::Result { + Self::IMediaTransportControlsAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + pub fn IMediaTransportControlsAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for MediaTransportControlsAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MediaTransportControlsAutomationPeer;{a3ad8d93-79f8-4958-a3c8-980defb83d15})"); +} +unsafe impl ::windows::core::Interface for MediaTransportControlsAutomationPeer { + type Vtable = IMediaTransportControlsAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa3ad8d93_79f8_4958_a3c8_980defb83d15); +} +impl ::windows::core::RuntimeName for MediaTransportControlsAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MediaTransportControlsAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MediaTransportControlsAutomationPeer) -> Self { + value.0 .0 } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &MediaTransportControlsAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MediaTransportControlsAutomationPeer) -> Self { + value.0 } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &MediaTransportControlsAutomationPeer) -> Self { + value.0.clone() } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: MediaTransportControlsAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &MediaTransportControlsAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: MediaTransportControlsAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for AutomationPeer { + fn from(value: &MediaTransportControlsAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MediaTransportControlsAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for super::super::DependencyObject { + fn from(value: &MediaTransportControlsAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MediaTransportControlsAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for MediaTransportControlsAutomationPeer {} +unsafe impl ::core::marker::Sync for MediaTransportControlsAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct MenuBarAutomationPeer(pub ::windows::core::IInspectable); +impl MenuBarAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstance<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuBar>>(owner: Param0) -> ::windows::core::Result { + Self::IMenuBarAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IMenuBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +unsafe impl ::windows::core::RuntimeType for MenuBarAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MenuBarAutomationPeer;{4b6adcf1-f274-5592-85a8-7b099e99b320})"); +} +unsafe impl ::windows::core::Interface for MenuBarAutomationPeer { + type Vtable = IMenuBarAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4b6adcf1_f274_5592_85a8_7b099e99b320); +} +impl ::windows::core::RuntimeName for MenuBarAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MenuBarAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MenuBarAutomationPeer) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&MenuBarAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &MenuBarAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MenuBarAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&MenuBarAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &MenuBarAutomationPeer) -> Self { + value.0.clone() } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: MenuBarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuBarAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &MenuBarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: MenuBarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuBarAutomationPeer> for AutomationPeer { + fn from(value: &MenuBarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MenuBarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuBarAutomationPeer> for super::super::DependencyObject { + fn from(value: &MenuBarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for MenuBarAutomationPeer {} +unsafe impl ::core::marker::Sync for MenuBarAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct MenuBarItemAutomationPeer(pub ::windows::core::IInspectable); +impl MenuBarItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ExpandCollapseState(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::ExpandCollapseState = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Collapse(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Expand(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Invoke(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn IRepeatButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstance<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuBarItem>>(owner: Param0) -> ::windows::core::Result { + Self::IMenuBarItemAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IMenuBarItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for RepeatButtonAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RepeatButtonAutomationPeer;{29e41ad5-a8ac-4e8a-83d8-09e37e054257})"); +unsafe impl ::windows::core::RuntimeType for MenuBarItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MenuBarItemAutomationPeer;{0fce49b4-cff5-5c4b-98ee-e75fdddf799a})"); } -unsafe impl ::windows::core::Interface for RepeatButtonAutomationPeer { - type Vtable = IRepeatButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29e41ad5_a8ac_4e8a_83d8_09e37e054257); +unsafe impl ::windows::core::Interface for MenuBarItemAutomationPeer { + type Vtable = IMenuBarItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0fce49b4_cff5_5c4b_98ee_e75fdddf799a); } -impl ::windows::core::RuntimeName for RepeatButtonAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RepeatButtonAutomationPeer"; +impl ::windows::core::RuntimeName for MenuBarItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MenuBarItemAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MenuBarItemAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&RepeatButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From<&MenuBarItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &MenuBarItemAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MenuBarItemAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&RepeatButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From<&MenuBarItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &MenuBarItemAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { +impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { type Error = ::windows::core::Error; - fn try_from(value: RepeatButtonAutomationPeer) -> ::windows::core::Result { + fn try_from(value: MenuBarItemAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&RepeatButtonAutomationPeer> for super::Provider::IInvokeProvider { +impl ::core::convert::TryFrom<&MenuBarItemAutomationPeer> for super::Provider::IExpandCollapseProvider { type Error = ::windows::core::Error; - fn try_from(value: &RepeatButtonAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &MenuBarItemAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for RepeatButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for MenuBarItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &RepeatButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for &MenuBarItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IExpandCollapseProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for ButtonBaseAutomationPeer { - fn from(value: RepeatButtonAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: MenuBarItemAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } } -impl ::core::convert::From<&RepeatButtonAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &RepeatButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&MenuBarItemAutomationPeer> for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: &MenuBarItemAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } } -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for RepeatButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for MenuBarItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::windows::core::IntoParam::into_param(&self) } } -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &RepeatButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &MenuBarItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: MenuBarItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RepeatButtonAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From<&MenuBarItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &MenuBarItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: MenuBarItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RepeatButtonAutomationPeer> for AutomationPeer { - fn from(value: &RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From<&MenuBarItemAutomationPeer> for AutomationPeer { + fn from(value: &MenuBarItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MenuBarItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RepeatButtonAutomationPeer> for super::super::DependencyObject { - fn from(value: &RepeatButtonAutomationPeer) -> Self { +impl ::core::convert::From<&MenuBarItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &MenuBarItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RepeatButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuBarItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for RepeatButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for RepeatButtonAutomationPeer {} +unsafe impl ::core::marker::Send for MenuBarItemAutomationPeer {} +unsafe impl ::core::marker::Sync for MenuBarItemAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RichEditBoxAutomationPeer(pub ::windows::core::IInspectable); -impl RichEditBoxAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RichEditBox>>(owner: Param0) -> ::windows::core::Result { - Self::IRichEditBoxAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } +pub struct MenuFlyoutItemAutomationPeer(pub ::windows::core::IInspectable); +impl MenuFlyoutItemAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn Invoke(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuFlyoutItem>>(owner: Param0) -> ::windows::core::Result { + Self::IMenuFlyoutItemAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IRichEditBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IMenuFlyoutItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for RichEditBoxAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RichEditBoxAutomationPeer;{c69f5c04-16ee-467a-a833-c3da8458ad64})"); +unsafe impl ::windows::core::RuntimeType for MenuFlyoutItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MenuFlyoutItemAutomationPeer;{1fc19462-21df-456e-aa11-8fac6b4b2af6})"); } -unsafe impl ::windows::core::Interface for RichEditBoxAutomationPeer { - type Vtable = IRichEditBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69f5c04_16ee_467a_a833_c3da8458ad64); +unsafe impl ::windows::core::Interface for MenuFlyoutItemAutomationPeer { + type Vtable = IMenuFlyoutItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1fc19462_21df_456e_aa11_8fac6b4b2af6); } -impl ::windows::core::RuntimeName for RichEditBoxAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RichEditBoxAutomationPeer"; +impl ::windows::core::RuntimeName for MenuFlyoutItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MenuFlyoutItemAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RichEditBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MenuFlyoutItemAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&RichEditBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RichEditBoxAutomationPeer) -> Self { +impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RichEditBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MenuFlyoutItemAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&RichEditBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RichEditBoxAutomationPeer) -> Self { +impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RichEditBoxAutomationPeer) -> Self { +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: MenuFlyoutItemAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&MenuFlyoutItemAutomationPeer> for super::Provider::IInvokeProvider { + type Error = ::windows::core::Error; + fn try_from(value: &MenuFlyoutItemAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for MenuFlyoutItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &MenuFlyoutItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: MenuFlyoutItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RichEditBoxAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RichEditBoxAutomationPeer) -> Self { +impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: RichEditBoxAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: MenuFlyoutItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RichEditBoxAutomationPeer> for AutomationPeer { - fn from(value: &RichEditBoxAutomationPeer) -> Self { +impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for AutomationPeer { + fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RichEditBoxAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MenuFlyoutItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RichEditBoxAutomationPeer> for super::super::DependencyObject { - fn from(value: &RichEditBoxAutomationPeer) -> Self { +impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RichEditBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for RichEditBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for RichEditBoxAutomationPeer {} +unsafe impl ::core::marker::Send for MenuFlyoutItemAutomationPeer {} +unsafe impl ::core::marker::Sync for MenuFlyoutItemAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RichTextBlockAutomationPeer(pub ::windows::core::IInspectable); -impl RichTextBlockAutomationPeer { +pub struct MenuFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +impl MenuFlyoutPresenterAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RichTextBlock>>(owner: Param0) -> ::windows::core::Result { - Self::IRichTextBlockAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuFlyoutPresenter>>(owner: Param0) -> ::windows::core::Result { + Self::IMenuFlyoutPresenterAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IMenuFlyoutPresenterAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +unsafe impl ::windows::core::RuntimeType for MenuFlyoutPresenterAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.MenuFlyoutPresenterAutomationPeer;{e244a871-fcbb-48fc-8a93-41ea134b53ce})"); +} +unsafe impl ::windows::core::Interface for MenuFlyoutPresenterAutomationPeer { + type Vtable = IMenuFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe244a871_fcbb_48fc_8a93_41ea134b53ce); +} +impl ::windows::core::RuntimeName for MenuFlyoutPresenterAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.MenuFlyoutPresenterAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { + value.0 .0 } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { + value.0 } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: MenuFlyoutPresenterAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&MenuFlyoutPresenterAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &MenuFlyoutPresenterAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl ::core::convert::From for ItemsControlAutomationPeer { + fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for ItemsControlAutomationPeer { + fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for AutomationPeer { + fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for super::super::DependencyObject { + fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for MenuFlyoutPresenterAutomationPeer {} +unsafe impl ::core::marker::Sync for MenuFlyoutPresenterAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct NavigationViewItemAutomationPeer(pub ::windows::core::IInspectable); +impl NavigationViewItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::NavigationViewItem>>(owner: Param0) -> ::windows::core::Result { + Self::INavigationViewItemAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IRichTextBlockAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn INavigationViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for RichTextBlockAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RichTextBlockAutomationPeer;{93a01a9c-9609-41fa-82f3-909c09f49a72})"); +unsafe impl ::windows::core::RuntimeType for NavigationViewItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.NavigationViewItemAutomationPeer;{309847a5-9971-4d8d-a81c-085c7086a1b9})"); } -unsafe impl ::windows::core::Interface for RichTextBlockAutomationPeer { - type Vtable = IRichTextBlockAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93a01a9c_9609_41fa_82f3_909c09f49a72); +unsafe impl ::windows::core::Interface for NavigationViewItemAutomationPeer { + type Vtable = INavigationViewItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x309847a5_9971_4d8d_a81c_085c7086a1b9); } -impl ::windows::core::RuntimeName for RichTextBlockAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RichTextBlockAutomationPeer"; +impl ::windows::core::RuntimeName for NavigationViewItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.NavigationViewItemAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: NavigationViewItemAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&RichTextBlockAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&NavigationViewItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &NavigationViewItemAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: NavigationViewItemAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&RichTextBlockAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&NavigationViewItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &NavigationViewItemAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From for ListViewItemAutomationPeer { + fn from(value: NavigationViewItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&NavigationViewItemAutomationPeer> for ListViewItemAutomationPeer { + fn from(value: &NavigationViewItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewItemAutomationPeer> for NavigationViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, ListViewItemAutomationPeer> for &NavigationViewItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ListViewItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: NavigationViewItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RichTextBlockAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&NavigationViewItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &NavigationViewItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: NavigationViewItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RichTextBlockAutomationPeer> for AutomationPeer { - fn from(value: &RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&NavigationViewItemAutomationPeer> for AutomationPeer { + fn from(value: &NavigationViewItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: NavigationViewItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RichTextBlockAutomationPeer> for super::super::DependencyObject { - fn from(value: &RichTextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&NavigationViewItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &NavigationViewItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RichTextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &NavigationViewItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for RichTextBlockAutomationPeer {} -unsafe impl ::core::marker::Sync for RichTextBlockAutomationPeer {} +unsafe impl ::core::marker::Send for NavigationViewItemAutomationPeer {} +unsafe impl ::core::marker::Sync for NavigationViewItemAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RichTextBlockOverflowAutomationPeer(pub ::windows::core::IInspectable); -impl RichTextBlockOverflowAutomationPeer { +pub struct PasswordBoxAutomationPeer(pub ::windows::core::IInspectable); +impl PasswordBoxAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RichTextBlockOverflow>>(owner: Param0) -> ::windows::core::Result { - Self::IRichTextBlockOverflowAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::PasswordBox>>(owner: Param0) -> ::windows::core::Result { + Self::IPasswordBoxAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IRichTextBlockOverflowAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IPasswordBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for RichTextBlockOverflowAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RichTextBlockOverflowAutomationPeer;{8c9a409a-2736-437b-ab36-a16a202f105d})"); +unsafe impl ::windows::core::RuntimeType for PasswordBoxAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PasswordBoxAutomationPeer;{684f065e-3df3-4b9f-82ad-8819db3b218a})"); } -unsafe impl ::windows::core::Interface for RichTextBlockOverflowAutomationPeer { - type Vtable = IRichTextBlockOverflowAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c9a409a_2736_437b_ab36_a16a202f105d); +unsafe impl ::windows::core::Interface for PasswordBoxAutomationPeer { + type Vtable = IPasswordBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x684f065e_3df3_4b9f_82ad_8819db3b218a); } -impl ::windows::core::RuntimeName for RichTextBlockOverflowAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RichTextBlockOverflowAutomationPeer"; +impl ::windows::core::RuntimeName for PasswordBoxAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PasswordBoxAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PasswordBoxAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From<&PasswordBoxAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &PasswordBoxAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PasswordBoxAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From<&PasswordBoxAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &PasswordBoxAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: PasswordBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From<&PasswordBoxAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &PasswordBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: PasswordBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for AutomationPeer { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From<&PasswordBoxAutomationPeer> for AutomationPeer { + fn from(value: &PasswordBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PasswordBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for super::super::DependencyObject { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { +impl ::core::convert::From<&PasswordBoxAutomationPeer> for super::super::DependencyObject { + fn from(value: &PasswordBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RichTextBlockOverflowAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PasswordBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for RichTextBlockOverflowAutomationPeer {} -unsafe impl ::core::marker::Sync for RichTextBlockOverflowAutomationPeer {} +unsafe impl ::core::marker::Send for PasswordBoxAutomationPeer {} +unsafe impl ::core::marker::Sync for PasswordBoxAutomationPeer {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct PatternInterface(pub i32); +impl PatternInterface { + pub const Invoke: PatternInterface = PatternInterface(0i32); + pub const Selection: PatternInterface = PatternInterface(1i32); + pub const Value: PatternInterface = PatternInterface(2i32); + pub const RangeValue: PatternInterface = PatternInterface(3i32); + pub const Scroll: PatternInterface = PatternInterface(4i32); + pub const ScrollItem: PatternInterface = PatternInterface(5i32); + pub const ExpandCollapse: PatternInterface = PatternInterface(6i32); + pub const Grid: PatternInterface = PatternInterface(7i32); + pub const GridItem: PatternInterface = PatternInterface(8i32); + pub const MultipleView: PatternInterface = PatternInterface(9i32); + pub const Window: PatternInterface = PatternInterface(10i32); + pub const SelectionItem: PatternInterface = PatternInterface(11i32); + pub const Dock: PatternInterface = PatternInterface(12i32); + pub const Table: PatternInterface = PatternInterface(13i32); + pub const TableItem: PatternInterface = PatternInterface(14i32); + pub const Toggle: PatternInterface = PatternInterface(15i32); + pub const Transform: PatternInterface = PatternInterface(16i32); + pub const Text: PatternInterface = PatternInterface(17i32); + pub const ItemContainer: PatternInterface = PatternInterface(18i32); + pub const VirtualizedItem: PatternInterface = PatternInterface(19i32); + pub const Text2: PatternInterface = PatternInterface(20i32); + pub const TextChild: PatternInterface = PatternInterface(21i32); + pub const TextRange: PatternInterface = PatternInterface(22i32); + pub const Annotation: PatternInterface = PatternInterface(23i32); + pub const Drag: PatternInterface = PatternInterface(24i32); + pub const DropTarget: PatternInterface = PatternInterface(25i32); + pub const ObjectModel: PatternInterface = PatternInterface(26i32); + pub const Spreadsheet: PatternInterface = PatternInterface(27i32); + pub const SpreadsheetItem: PatternInterface = PatternInterface(28i32); + pub const Styles: PatternInterface = PatternInterface(29i32); + pub const Transform2: PatternInterface = PatternInterface(30i32); + pub const SynchronizedInput: PatternInterface = PatternInterface(31i32); + pub const TextEdit: PatternInterface = PatternInterface(32i32); + pub const CustomNavigation: PatternInterface = PatternInterface(33i32); +} +impl ::core::convert::From for PatternInterface { + fn from(value: i32) -> Self { + Self(value) + } +} +unsafe impl ::windows::core::Abi for PatternInterface { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for PatternInterface { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.PatternInterface;i4)"); +} +impl ::windows::core::DefaultType for PatternInterface { + type DefaultType = Self; +} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ScrollBarAutomationPeer(pub ::windows::core::IInspectable); -impl ScrollBarAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ScrollBar>>(owner: Param0) -> ::windows::core::Result { - Self::IScrollBarAutomationPeerFactory(|this| unsafe { +pub struct PersonPictureAutomationPeer(pub ::windows::core::IInspectable); +impl PersonPictureAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::PersonPicture>>(owner: Param0) -> ::windows::core::Result { + Self::IPersonPictureAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + pub fn IPersonPictureAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for PersonPictureAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PersonPictureAutomationPeer;{27156d4c-a66f-4aaf-8286-4f796d30628c})"); +} +unsafe impl ::windows::core::Interface for PersonPictureAutomationPeer { + type Vtable = IPersonPictureAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x27156d4c_a66f_4aaf_8286_4f796d30628c); +} +impl ::windows::core::RuntimeName for PersonPictureAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PersonPictureAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PersonPictureAutomationPeer) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&PersonPictureAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &PersonPictureAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PersonPictureAutomationPeer) -> Self { + value.0 } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&PersonPictureAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &PersonPictureAutomationPeer) -> Self { + value.0.clone() } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: PersonPictureAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&PersonPictureAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &PersonPictureAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: PersonPictureAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PersonPictureAutomationPeer> for AutomationPeer { + fn from(value: &PersonPictureAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PersonPictureAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PersonPictureAutomationPeer> for super::super::DependencyObject { + fn from(value: &PersonPictureAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PersonPictureAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for PersonPictureAutomationPeer {} +unsafe impl ::core::marker::Sync for PersonPictureAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct PickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +impl PickerFlyoutPresenterAutomationPeer {} +unsafe impl ::windows::core::RuntimeType for PickerFlyoutPresenterAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PickerFlyoutPresenterAutomationPeer;{28414bf7-8382-4eae-93c1-d6f035aa8155})"); +} +unsafe impl ::windows::core::Interface for PickerFlyoutPresenterAutomationPeer { + type Vtable = IPickerFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x28414bf7_8382_4eae_93c1_d6f035aa8155); +} +impl ::windows::core::RuntimeName for PickerFlyoutPresenterAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PickerFlyoutPresenterAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { + value.0 .0 } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { + value.0 .0.clone() } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { + value.0.clone() } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for AutomationPeer { + fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for super::super::DependencyObject { + fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PickerFlyoutPresenterAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } +} +unsafe impl ::core::marker::Send for PickerFlyoutPresenterAutomationPeer {} +unsafe impl ::core::marker::Sync for PickerFlyoutPresenterAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct PivotAutomationPeer(pub ::windows::core::IInspectable); +impl PivotAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsReadOnly(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalScrollPercent(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Maximum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalViewSize(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Minimum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticallyScrollable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalScrollPercent(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Value(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalViewSize(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetValue2(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), horizontalamount, verticalamount).ok() } } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), horizontalpercent, verticalpercent).ok() } } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn CanSelectMultiple(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn IsSelectionRequired(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::Array = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Pivot>>(owner: Param0) -> ::windows::core::Result { + Self::IPivotAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), &mut result__).from_abi::(result__) + }) } - pub fn IScrollBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IPivotAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ScrollBarAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ScrollBarAutomationPeer;{69e0c369-bbe7-41f2-87ca-aad813fe550e})"); +unsafe impl ::windows::core::RuntimeType for PivotAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PivotAutomationPeer;{e715a8f8-3b9d-402c-81e2-6e912ef58981})"); } -unsafe impl ::windows::core::Interface for ScrollBarAutomationPeer { - type Vtable = IScrollBarAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69e0c369_bbe7_41f2_87ca_aad813fe550e); +unsafe impl ::windows::core::Interface for PivotAutomationPeer { + type Vtable = IPivotAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe715a8f8_3b9d_402c_81e2_6e912ef58981); } -impl ::windows::core::RuntimeName for ScrollBarAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ScrollBarAutomationPeer"; +impl ::windows::core::RuntimeName for PivotAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PivotAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PivotAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ScrollBarAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From<&PivotAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &PivotAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PivotAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ScrollBarAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From<&PivotAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &PivotAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom for super::Provider::IScrollProvider { type Error = ::windows::core::Error; - fn try_from(value: ScrollBarAutomationPeer) -> ::windows::core::Result { + fn try_from(value: PivotAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ScrollBarAutomationPeer> for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom<&PivotAutomationPeer> for super::Provider::IScrollProvider { type Error = ::windows::core::Error; - fn try_from(value: &ScrollBarAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &PivotAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for ScrollBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for PivotAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &ScrollBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for &PivotAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for RangeBaseAutomationPeer { - fn from(value: ScrollBarAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: PivotAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } } -impl ::core::convert::From<&ScrollBarAutomationPeer> for RangeBaseAutomationPeer { - fn from(value: &ScrollBarAutomationPeer) -> Self { +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&PivotAutomationPeer> for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: &PivotAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for PivotAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &PivotAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: PivotAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&PivotAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &PivotAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for PivotAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &PivotAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for ItemsControlAutomationPeer { + fn from(value: PivotAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&PivotAutomationPeer> for ItemsControlAutomationPeer { + fn from(value: &PivotAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for ScrollBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for PivotAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for &ScrollBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &PivotAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: PivotAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ScrollBarAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From<&PivotAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &PivotAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: PivotAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ScrollBarAutomationPeer> for AutomationPeer { - fn from(value: &ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From<&PivotAutomationPeer> for AutomationPeer { + fn from(value: &PivotAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PivotAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ScrollBarAutomationPeer> for super::super::DependencyObject { - fn from(value: &ScrollBarAutomationPeer) -> Self { +impl ::core::convert::From<&PivotAutomationPeer> for super::super::DependencyObject { + fn from(value: &PivotAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ScrollBarAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ScrollBarAutomationPeer {} -unsafe impl ::core::marker::Sync for ScrollBarAutomationPeer {} +unsafe impl ::core::marker::Send for PivotAutomationPeer {} +unsafe impl ::core::marker::Sync for PivotAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ScrollViewerAutomationPeer(pub ::windows::core::IInspectable); -impl ScrollViewerAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontalScrollPercent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalScrollPercent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), horizontalamount, verticalamount).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), horizontalpercent, verticalpercent).ok() } - } +pub struct PivotItemAutomationPeer(pub ::windows::core::IInspectable); +impl PivotItemAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ScrollViewer>>(owner: Param0) -> ::windows::core::Result { - Self::IScrollViewerAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::PivotItem>>(owner: Param0) -> ::windows::core::Result { + Self::IPivotItemAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } + pub fn IPivotItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for PivotItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PivotItemAutomationPeer;{1a4241ad-5d55-4d27-b40f-2d37506fbe78})"); +} +unsafe impl ::windows::core::Interface for PivotItemAutomationPeer { + type Vtable = IPivotItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a4241ad_5d55_4d27_b40f_2d37506fbe78); +} +impl ::windows::core::RuntimeName for PivotItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PivotItemAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PivotItemAutomationPeer) -> Self { + value.0 .0 } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&PivotItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &PivotItemAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PivotItemAutomationPeer) -> Self { + value.0 } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl ::core::convert::From<&PivotItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &PivotItemAutomationPeer) -> Self { + value.0.clone() } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: PivotItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl ::core::convert::From<&PivotItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &PivotItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: PivotItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotItemAutomationPeer> for AutomationPeer { + fn from(value: &PivotItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PivotItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&PivotItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &PivotItemAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +unsafe impl ::core::marker::Send for PivotItemAutomationPeer {} +unsafe impl ::core::marker::Sync for PivotItemAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct PivotItemDataAutomationPeer(pub ::windows::core::IInspectable); +impl PivotItemDataAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn IsSelected(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SelectionContainer(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn AddToSelection(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Select(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Realize(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, PivotAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { + Self::IPivotItemDataAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), &mut result__).from_abi::(result__) + }) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IPivotItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for PivotItemDataAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.PivotItemDataAutomationPeer;{a2a3b788-ea1d-48b7-88ee-f08b6aa07fee})"); +} +unsafe impl ::windows::core::Interface for PivotItemDataAutomationPeer { + type Vtable = IPivotItemDataAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa2a3b788_ea1d_48b7_88ee_f08b6aa07fee); +} +impl ::windows::core::RuntimeName for PivotItemDataAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.PivotItemDataAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PivotItemDataAutomationPeer) -> Self { + value.0 .0 } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotItemDataAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &PivotItemDataAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PivotItemDataAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotItemDataAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &PivotItemDataAutomationPeer) -> Self { + value.0.clone() } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IScrollItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: PivotItemDataAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&PivotItemDataAutomationPeer> for super::Provider::IScrollItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &PivotItemDataAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollItemProvider> for &PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: PivotItemDataAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&PivotItemDataAutomationPeer> for super::Provider::ISelectionItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &PivotItemDataAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: PivotItemDataAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&PivotItemDataAutomationPeer> for super::Provider::IVirtualizedItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &PivotItemDataAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From for ItemAutomationPeer { + fn from(value: PivotItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotItemDataAutomationPeer> for ItemAutomationPeer { + fn from(value: &PivotItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: PivotItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&PivotItemDataAutomationPeer> for AutomationPeer { + fn from(value: &PivotItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PivotItemDataAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotItemDataAutomationPeer> for super::super::DependencyObject { + fn from(value: &PivotItemDataAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotItemDataAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for PivotItemDataAutomationPeer {} +unsafe impl ::core::marker::Sync for PivotItemDataAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ProgressBarAutomationPeer(pub ::windows::core::IInspectable); +impl ProgressBarAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ProgressBar>>(owner: Param0) -> ::windows::core::Result { + Self::IProgressBarAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IScrollViewerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IProgressBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ScrollViewerAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ScrollViewerAutomationPeer;{d985f259-1b09-4e88-88fd-421750dc6b45})"); +unsafe impl ::windows::core::RuntimeType for ProgressBarAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ProgressBarAutomationPeer;{93f48f86-d840-4fb6-ac2f-5f779b854b0d})"); } -unsafe impl ::windows::core::Interface for ScrollViewerAutomationPeer { - type Vtable = IScrollViewerAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd985f259_1b09_4e88_88fd_421750dc6b45); +unsafe impl ::windows::core::Interface for ProgressBarAutomationPeer { + type Vtable = IProgressBarAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93f48f86_d840_4fb6_ac2f_5f779b854b0d); } -impl ::windows::core::RuntimeName for ScrollViewerAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ScrollViewerAutomationPeer"; +impl ::windows::core::RuntimeName for ProgressBarAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ProgressBarAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ProgressBarAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ScrollViewerAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressBarAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ProgressBarAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ProgressBarAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ScrollViewerAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressBarAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ProgressBarAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollProvider { +impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { type Error = ::windows::core::Error; - fn try_from(value: ScrollViewerAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ProgressBarAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ScrollViewerAutomationPeer> for super::Provider::IScrollProvider { +impl ::core::convert::TryFrom<&ProgressBarAutomationPeer> for super::Provider::IRangeValueProvider { type Error = ::windows::core::Error; - fn try_from(value: &ScrollViewerAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ProgressBarAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for ScrollViewerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for ProgressBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for &ScrollViewerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &ProgressBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From for RangeBaseAutomationPeer { + fn from(value: ProgressBarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&ProgressBarAutomationPeer> for RangeBaseAutomationPeer { + fn from(value: &ProgressBarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for ProgressBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for &ProgressBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ProgressBarAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ScrollViewerAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressBarAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ProgressBarAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ProgressBarAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ScrollViewerAutomationPeer> for AutomationPeer { - fn from(value: &ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressBarAutomationPeer> for AutomationPeer { + fn from(value: &ProgressBarAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ProgressBarAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ScrollViewerAutomationPeer> for super::super::DependencyObject { - fn from(value: &ScrollViewerAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressBarAutomationPeer> for super::super::DependencyObject { + fn from(value: &ProgressBarAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ScrollViewerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ProgressBarAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ScrollViewerAutomationPeer {} -unsafe impl ::core::marker::Sync for ScrollViewerAutomationPeer {} +unsafe impl ::core::marker::Send for ProgressBarAutomationPeer {} +unsafe impl ::core::marker::Sync for ProgressBarAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct SearchBoxAutomationPeer(pub ::windows::core::IInspectable); -impl SearchBoxAutomationPeer { +pub struct ProgressRingAutomationPeer(pub ::windows::core::IInspectable); +impl ProgressRingAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::SearchBox>>(owner: Param0) -> ::windows::core::Result { - Self::ISearchBoxAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ProgressRing>>(owner: Param0) -> ::windows::core::Result { + Self::IProgressRingAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn ISearchBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IProgressRingAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for SearchBoxAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SearchBoxAutomationPeer;{854011a4-18a6-4f30-939b-8871afa3f5e9})"); +unsafe impl ::windows::core::RuntimeType for ProgressRingAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ProgressRingAutomationPeer;{bc305eee-39d3-4eeb-ac33-2394de123e2e})"); } -unsafe impl ::windows::core::Interface for SearchBoxAutomationPeer { - type Vtable = ISearchBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x854011a4_18a6_4f30_939b_8871afa3f5e9); +unsafe impl ::windows::core::Interface for ProgressRingAutomationPeer { + type Vtable = IProgressRingAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbc305eee_39d3_4eeb_ac33_2394de123e2e); } -impl ::windows::core::RuntimeName for SearchBoxAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SearchBoxAutomationPeer"; +impl ::windows::core::RuntimeName for ProgressRingAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ProgressRingAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ProgressRingAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&SearchBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressRingAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ProgressRingAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ProgressRingAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&SearchBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressRingAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ProgressRingAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ProgressRingAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SearchBoxAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressRingAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ProgressRingAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ProgressRingAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SearchBoxAutomationPeer> for AutomationPeer { - fn from(value: &SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressRingAutomationPeer> for AutomationPeer { + fn from(value: &ProgressRingAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ProgressRingAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SearchBoxAutomationPeer> for super::super::DependencyObject { - fn from(value: &SearchBoxAutomationPeer) -> Self { +impl ::core::convert::From<&ProgressRingAutomationPeer> for super::super::DependencyObject { + fn from(value: &ProgressRingAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SearchBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ProgressRingAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for SearchBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for SearchBoxAutomationPeer {} +unsafe impl ::core::marker::Send for ProgressRingAutomationPeer {} +unsafe impl ::core::marker::Sync for ProgressRingAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct SelectorAutomationPeer(pub ::windows::core::IInspectable); -impl SelectorAutomationPeer { +pub struct RadioButtonAutomationPeer(pub ::windows::core::IInspectable); +impl RadioButtonAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsSelected(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::Selector>>(owner: Param0) -> ::windows::core::Result { - Self::ISelectorAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectionContainer(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn AddToSelection(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Select(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RadioButton>>(owner: Param0) -> ::windows::core::Result { + Self::IRadioButtonAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + pub fn IRadioButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for RadioButtonAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RadioButtonAutomationPeer;{7e6a5ed8-0b30-4743-b102-dcdf548e3131})"); +} +unsafe impl ::windows::core::Interface for RadioButtonAutomationPeer { + type Vtable = IRadioButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e6a5ed8_0b30_4743_b102_dcdf548e3131); +} +impl ::windows::core::RuntimeName for RadioButtonAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RadioButtonAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RadioButtonAutomationPeer) -> Self { + value.0 .0 } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&RadioButtonAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &RadioButtonAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RadioButtonAutomationPeer) -> Self { + value.0 } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&RadioButtonAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &RadioButtonAutomationPeer) -> Self { + value.0.clone() } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: RadioButtonAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&RadioButtonAutomationPeer> for super::Provider::ISelectionItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &RadioButtonAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::windows::core::IntoParam::into_param(&self) } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: RadioButtonAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&RadioButtonAutomationPeer> for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: &RadioButtonAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ToggleButtonAutomationPeer { + fn from(value: RadioButtonAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&RadioButtonAutomationPeer> for ToggleButtonAutomationPeer { + fn from(value: &RadioButtonAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for &RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From for ButtonBaseAutomationPeer { + fn from(value: RadioButtonAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&RadioButtonAutomationPeer> for ButtonBaseAutomationPeer { + fn from(value: &RadioButtonAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: RadioButtonAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&RadioButtonAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &RadioButtonAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: RadioButtonAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&RadioButtonAutomationPeer> for AutomationPeer { + fn from(value: &RadioButtonAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: RadioButtonAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&RadioButtonAutomationPeer> for super::super::DependencyObject { + fn from(value: &RadioButtonAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RadioButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for RadioButtonAutomationPeer {} +unsafe impl ::core::marker::Sync for RadioButtonAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct RangeBaseAutomationPeer(pub ::windows::core::IInspectable); +impl RangeBaseAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn IsReadOnly(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn LargeChange(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Maximum(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Minimum(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SmallChange(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Value(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn ISelectorAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SetValue(&self, value: f64) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } + } + #[cfg(feature = "UI_Xaml_Controls_Primitives")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::RangeBase>>(owner: Param0) -> ::windows::core::Result { + Self::IRangeBaseAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IRangeBaseAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for SelectorAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SelectorAutomationPeer;{162ac829-7115-43ec-b383-a7b71644069d})"); +unsafe impl ::windows::core::RuntimeType for RangeBaseAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RangeBaseAutomationPeer;{e454b549-4b2c-42ad-b04b-d35947d1ee50})"); } -unsafe impl ::windows::core::Interface for SelectorAutomationPeer { - type Vtable = ISelectorAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x162ac829_7115_43ec_b383_a7b71644069d); +unsafe impl ::windows::core::Interface for RangeBaseAutomationPeer { + type Vtable = IRangeBaseAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe454b549_4b2c_42ad_b04b_d35947d1ee50); } -impl ::windows::core::RuntimeName for SelectorAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SelectorAutomationPeer"; +impl ::windows::core::RuntimeName for RangeBaseAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RangeBaseAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SelectorAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RangeBaseAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&SelectorAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SelectorAutomationPeer) -> Self { +impl ::core::convert::From<&RangeBaseAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &RangeBaseAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RangeBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RangeBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SelectorAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RangeBaseAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&SelectorAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SelectorAutomationPeer) -> Self { +impl ::core::convert::From<&RangeBaseAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &RangeBaseAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RangeBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RangeBaseAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { +impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { type Error = ::windows::core::Error; - fn try_from(value: SelectorAutomationPeer) -> ::windows::core::Result { + fn try_from(value: RangeBaseAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&SelectorAutomationPeer> for super::Provider::ISelectionProvider { +impl ::core::convert::TryFrom<&RangeBaseAutomationPeer> for super::Provider::IRangeValueProvider { type Error = ::windows::core::Error; - fn try_from(value: &SelectorAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &RangeBaseAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for SelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for RangeBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &SelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &RangeBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: RangeBaseAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RangeBaseAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &RangeBaseAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RangeBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RangeBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: RangeBaseAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RangeBaseAutomationPeer> for AutomationPeer { + fn from(value: &RangeBaseAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RangeBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RangeBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: RangeBaseAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RangeBaseAutomationPeer> for super::super::DependencyObject { + fn from(value: &RangeBaseAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RangeBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RangeBaseAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for RangeBaseAutomationPeer {} +unsafe impl ::core::marker::Sync for RangeBaseAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct RatingControlAutomationPeer(pub ::windows::core::IInspectable); +impl RatingControlAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RatingControl>>(owner: Param0) -> ::windows::core::Result { + Self::IRatingControlAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IRatingControlAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } +} +unsafe impl ::windows::core::RuntimeType for RatingControlAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RatingControlAutomationPeer;{3d14349a-9963-4a47-823c-f457cb3209d5})"); +} +unsafe impl ::windows::core::Interface for RatingControlAutomationPeer { + type Vtable = IRatingControlAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d14349a_9963_4a47_823c_f457cb3209d5); +} +impl ::windows::core::RuntimeName for RatingControlAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RatingControlAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RatingControlAutomationPeer) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&RatingControlAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &RatingControlAutomationPeer) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) + } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RatingControlAutomationPeer) -> Self { + value.0 + } +} +impl ::core::convert::From<&RatingControlAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &RatingControlAutomationPeer) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: RatingControlAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RatingControlAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &RatingControlAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: RatingControlAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RatingControlAutomationPeer> for AutomationPeer { + fn from(value: &RatingControlAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: RatingControlAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RatingControlAutomationPeer> for super::super::DependencyObject { + fn from(value: &RatingControlAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RatingControlAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for RatingControlAutomationPeer {} +unsafe impl ::core::marker::Sync for RatingControlAutomationPeer {} +#[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] +#[repr(C)] +pub struct RawElementProviderRuntimeId { + pub Part1: u32, + pub Part2: u32, +} +impl RawElementProviderRuntimeId {} +impl ::core::default::Default for RawElementProviderRuntimeId { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +impl ::core::fmt::Debug for RawElementProviderRuntimeId { + fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fmt.debug_struct("RawElementProviderRuntimeId").field("Part1", &self.Part1).field("Part2", &self.Part2).finish() + } +} +impl ::core::cmp::PartialEq for RawElementProviderRuntimeId { + fn eq(&self, other: &Self) -> bool { + self.Part1 == other.Part1 && self.Part2 == other.Part2 + } +} +impl ::core::cmp::Eq for RawElementProviderRuntimeId {} +unsafe impl ::windows::core::Abi for RawElementProviderRuntimeId { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for RawElementProviderRuntimeId { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"struct(Windows.UI.Xaml.Automation.Peers.RawElementProviderRuntimeId;u4;u4)"); +} +impl ::windows::core::DefaultType for RawElementProviderRuntimeId { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct RepeatButtonAutomationPeer(pub ::windows::core::IInspectable); +impl RepeatButtonAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Invoke(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } + } + #[cfg(feature = "UI_Xaml_Controls_Primitives")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::RepeatButton>>(owner: Param0) -> ::windows::core::Result { + Self::IRepeatButtonAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IRepeatButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } +} +unsafe impl ::windows::core::RuntimeType for RepeatButtonAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RepeatButtonAutomationPeer;{29e41ad5-a8ac-4e8a-83d8-09e37e054257})"); +} +unsafe impl ::windows::core::Interface for RepeatButtonAutomationPeer { + type Vtable = IRepeatButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29e41ad5_a8ac_4e8a_83d8_09e37e054257); +} +impl ::windows::core::RuntimeName for RepeatButtonAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RepeatButtonAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RepeatButtonAutomationPeer) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&RepeatButtonAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &RepeatButtonAutomationPeer) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RepeatButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RepeatButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) + } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RepeatButtonAutomationPeer) -> Self { + value.0 + } +} +impl ::core::convert::From<&RepeatButtonAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &RepeatButtonAutomationPeer) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RepeatButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RepeatButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { +impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { type Error = ::windows::core::Error; - fn try_from(value: SelectorAutomationPeer) -> ::windows::core::Result { + fn try_from(value: RepeatButtonAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&SelectorAutomationPeer> for super::Provider::IItemContainerProvider { +impl ::core::convert::TryFrom<&RepeatButtonAutomationPeer> for super::Provider::IInvokeProvider { type Error = ::windows::core::Error; - fn try_from(value: &SelectorAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &RepeatButtonAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for SelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for RepeatButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &SelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for &RepeatButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IInvokeProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: SelectorAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for ButtonBaseAutomationPeer { + fn from(value: RepeatButtonAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SelectorAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &SelectorAutomationPeer) -> Self { +impl ::core::convert::From<&RepeatButtonAutomationPeer> for ButtonBaseAutomationPeer { + fn from(value: &RepeatButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for SelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for RepeatButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &SelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &RepeatButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: SelectorAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: RepeatButtonAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SelectorAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &SelectorAutomationPeer) -> Self { +impl ::core::convert::From<&RepeatButtonAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &RepeatButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RepeatButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RepeatButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: SelectorAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: RepeatButtonAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SelectorAutomationPeer> for AutomationPeer { - fn from(value: &SelectorAutomationPeer) -> Self { +impl ::core::convert::From<&RepeatButtonAutomationPeer> for AutomationPeer { + fn from(value: &RepeatButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RepeatButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RepeatButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SelectorAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: RepeatButtonAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SelectorAutomationPeer> for super::super::DependencyObject { - fn from(value: &SelectorAutomationPeer) -> Self { +impl ::core::convert::From<&RepeatButtonAutomationPeer> for super::super::DependencyObject { + fn from(value: &RepeatButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RepeatButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SelectorAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RepeatButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for SelectorAutomationPeer {} -unsafe impl ::core::marker::Sync for SelectorAutomationPeer {} +unsafe impl ::core::marker::Send for RepeatButtonAutomationPeer {} +unsafe impl ::core::marker::Sync for RepeatButtonAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct SelectorItemAutomationPeer(pub ::windows::core::IInspectable); -impl SelectorItemAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, SelectorAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { - Self::ISelectorItemAutomationPeerFactory(|this| unsafe { +pub struct RichEditBoxAutomationPeer(pub ::windows::core::IInspectable); +impl RichEditBoxAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RichEditBox>>(owner: Param0) -> ::windows::core::Result { + Self::IRichEditBoxAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ISelectorItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IRichEditBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for SelectorItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SelectorItemAutomationPeer;{ae8b3477-860a-45bb-bf7c-e1b27419d1dd})"); +unsafe impl ::windows::core::RuntimeType for RichEditBoxAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RichEditBoxAutomationPeer;{c69f5c04-16ee-467a-a833-c3da8458ad64})"); } -unsafe impl ::windows::core::Interface for SelectorItemAutomationPeer { - type Vtable = ISelectorItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae8b3477_860a_45bb_bf7c_e1b27419d1dd); +unsafe impl ::windows::core::Interface for RichEditBoxAutomationPeer { + type Vtable = IRichEditBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69f5c04_16ee_467a_a833_c3da8458ad64); } -impl ::windows::core::RuntimeName for SelectorItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SelectorItemAutomationPeer"; +impl ::windows::core::RuntimeName for RichEditBoxAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RichEditBoxAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SelectorItemAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RichEditBoxAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&SelectorItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SelectorItemAutomationPeer) -> Self { +impl ::core::convert::From<&RichEditBoxAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &RichEditBoxAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectorItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RichEditBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectorItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RichEditBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SelectorItemAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RichEditBoxAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&SelectorItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SelectorItemAutomationPeer) -> Self { +impl ::core::convert::From<&RichEditBoxAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &RichEditBoxAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectorItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RichEditBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectorItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RichEditBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: SelectorItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: RichEditBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&SelectorItemAutomationPeer> for super::Provider::ISelectionItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &SelectorItemAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) +impl ::core::convert::From<&RichEditBoxAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &RichEditBoxAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for SelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::windows::core::IntoParam::into_param(&self) +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RichEditBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &SelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RichEditBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: SelectorItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) +impl ::core::convert::From for AutomationPeer { + fn from(value: RichEditBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&SelectorItemAutomationPeer> for super::Provider::IVirtualizedItemProvider { - type Error = ::windows::core::Error; - fn try_from(value: &SelectorItemAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) +impl ::core::convert::From<&RichEditBoxAutomationPeer> for AutomationPeer { + fn from(value: &RichEditBoxAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for SelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::windows::core::IntoParam::into_param(&self) +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RichEditBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &SelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RichEditBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: SelectorItemAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: RichEditBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SelectorItemAutomationPeer> for ItemAutomationPeer { - fn from(value: &SelectorItemAutomationPeer) -> Self { +impl ::core::convert::From<&RichEditBoxAutomationPeer> for super::super::DependencyObject { + fn from(value: &RichEditBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for SelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RichEditBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &SelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RichEditBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: SelectorItemAutomationPeer) -> Self { +unsafe impl ::core::marker::Send for RichEditBoxAutomationPeer {} +unsafe impl ::core::marker::Sync for RichEditBoxAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct RichTextBlockAutomationPeer(pub ::windows::core::IInspectable); +impl RichTextBlockAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RichTextBlock>>(owner: Param0) -> ::windows::core::Result { + Self::IRichTextBlockAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IRichTextBlockAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } +} +unsafe impl ::windows::core::RuntimeType for RichTextBlockAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RichTextBlockAutomationPeer;{93a01a9c-9609-41fa-82f3-909c09f49a72})"); +} +unsafe impl ::windows::core::Interface for RichTextBlockAutomationPeer { + type Vtable = IRichTextBlockAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93a01a9c_9609_41fa_82f3_909c09f49a72); +} +impl ::windows::core::RuntimeName for RichTextBlockAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RichTextBlockAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RichTextBlockAutomationPeer) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&RichTextBlockAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &RichTextBlockAutomationPeer) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RichTextBlockAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RichTextBlockAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) + } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RichTextBlockAutomationPeer) -> Self { + value.0 + } +} +impl ::core::convert::From<&RichTextBlockAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &RichTextBlockAutomationPeer) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RichTextBlockAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RichTextBlockAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: RichTextBlockAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RichTextBlockAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &RichTextBlockAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RichTextBlockAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RichTextBlockAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: RichTextBlockAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SelectorItemAutomationPeer> for AutomationPeer { - fn from(value: &SelectorItemAutomationPeer) -> Self { +impl ::core::convert::From<&RichTextBlockAutomationPeer> for AutomationPeer { + fn from(value: &RichTextBlockAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SelectorItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RichTextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SelectorItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RichTextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SelectorItemAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: RichTextBlockAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SelectorItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &SelectorItemAutomationPeer) -> Self { +impl ::core::convert::From<&RichTextBlockAutomationPeer> for super::super::DependencyObject { + fn from(value: &RichTextBlockAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SelectorItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RichTextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SelectorItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RichTextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for SelectorItemAutomationPeer {} -unsafe impl ::core::marker::Sync for SelectorItemAutomationPeer {} +unsafe impl ::core::marker::Send for RichTextBlockAutomationPeer {} +unsafe impl ::core::marker::Sync for RichTextBlockAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct SemanticZoomAutomationPeer(pub ::windows::core::IInspectable); -impl SemanticZoomAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ToggleState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Toggle(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } - } +pub struct RichTextBlockOverflowAutomationPeer(pub ::windows::core::IInspectable); +impl RichTextBlockOverflowAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::SemanticZoom>>(owner: Param0) -> ::windows::core::Result { - Self::ISemanticZoomAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RichTextBlockOverflow>>(owner: Param0) -> ::windows::core::Result { + Self::IRichTextBlockOverflowAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IRichTextBlockOverflowAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +unsafe impl ::windows::core::RuntimeType for RichTextBlockOverflowAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.RichTextBlockOverflowAutomationPeer;{8c9a409a-2736-437b-ab36-a16a202f105d})"); +} +unsafe impl ::windows::core::Interface for RichTextBlockOverflowAutomationPeer { + type Vtable = IRichTextBlockOverflowAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c9a409a_2736_437b_ab36_a16a202f105d); +} +impl ::windows::core::RuntimeName for RichTextBlockOverflowAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.RichTextBlockOverflowAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { + value.0 } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { + value.0.clone() } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for AutomationPeer { + fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for super::super::DependencyObject { + fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RichTextBlockOverflowAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +} +unsafe impl ::core::marker::Send for RichTextBlockOverflowAutomationPeer {} +unsafe impl ::core::marker::Sync for RichTextBlockOverflowAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ScrollBarAutomationPeer(pub ::windows::core::IInspectable); +impl ScrollBarAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls_Primitives")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ScrollBar>>(owner: Param0) -> ::windows::core::Result { + Self::IScrollBarAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IScrollBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ScrollBarAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ScrollBarAutomationPeer;{69e0c369-bbe7-41f2-87ca-aad813fe550e})"); +} +unsafe impl ::windows::core::Interface for ScrollBarAutomationPeer { + type Vtable = IScrollBarAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69e0c369_bbe7_41f2_87ca_aad813fe550e); +} +impl ::windows::core::RuntimeName for ScrollBarAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ScrollBarAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ScrollBarAutomationPeer) -> Self { + value.0 .0 } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ScrollBarAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ScrollBarAutomationPeer) -> Self { + value.0 .0.clone() } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ScrollBarAutomationPeer) -> Self { + value.0 } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ScrollBarAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ScrollBarAutomationPeer) -> Self { + value.0.clone() } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { + type Error = ::windows::core::Error; + fn try_from(value: ScrollBarAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ScrollBarAutomationPeer> for super::Provider::IRangeValueProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ScrollBarAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for RangeBaseAutomationPeer { + fn from(value: ScrollBarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&ScrollBarAutomationPeer> for RangeBaseAutomationPeer { + fn from(value: &ScrollBarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for &ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ScrollBarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&ScrollBarAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ScrollBarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ScrollBarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ScrollBarAutomationPeer> for AutomationPeer { + fn from(value: &ScrollBarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ScrollBarAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ScrollBarAutomationPeer> for super::super::DependencyObject { + fn from(value: &ScrollBarAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ScrollBarAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ScrollBarAutomationPeer {} +unsafe impl ::core::marker::Sync for ScrollBarAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ScrollViewerAutomationPeer(pub ::windows::core::IInspectable); +impl ScrollViewerAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn HorizontalScrollPercent(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn HorizontalViewSize(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn VerticallyScrollable(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn VerticalScrollPercent(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn VerticalViewSize(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), horizontalamount, verticalamount).ok() } } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), horizontalpercent, verticalpercent).ok() } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ScrollViewer>>(owner: Param0) -> ::windows::core::Result { + Self::IScrollViewerAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn ISemanticZoomAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IScrollViewerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for SemanticZoomAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SemanticZoomAutomationPeer;{3c2fac6c-a977-47fc-b44e-2754c0b2bea9})"); +unsafe impl ::windows::core::RuntimeType for ScrollViewerAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ScrollViewerAutomationPeer;{d985f259-1b09-4e88-88fd-421750dc6b45})"); } -unsafe impl ::windows::core::Interface for SemanticZoomAutomationPeer { - type Vtable = ISemanticZoomAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c2fac6c_a977_47fc_b44e_2754c0b2bea9); +unsafe impl ::windows::core::Interface for ScrollViewerAutomationPeer { + type Vtable = IScrollViewerAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd985f259_1b09_4e88_88fd_421750dc6b45); } -impl ::windows::core::RuntimeName for SemanticZoomAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SemanticZoomAutomationPeer"; +impl ::windows::core::RuntimeName for ScrollViewerAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ScrollViewerAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ScrollViewerAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&SemanticZoomAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From<&ScrollViewerAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ScrollViewerAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ScrollViewerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ScrollViewerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ScrollViewerAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&SemanticZoomAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From<&ScrollViewerAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ScrollViewerAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ScrollViewerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ScrollViewerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom for super::Provider::IScrollProvider { type Error = ::windows::core::Error; - fn try_from(value: SemanticZoomAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ScrollViewerAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&SemanticZoomAutomationPeer> for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom<&ScrollViewerAutomationPeer> for super::Provider::IScrollProvider { type Error = ::windows::core::Error; - fn try_from(value: &SemanticZoomAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ScrollViewerAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for SemanticZoomAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for ScrollViewerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &SemanticZoomAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IScrollProvider> for &ScrollViewerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IScrollProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ScrollViewerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SemanticZoomAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From<&ScrollViewerAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ScrollViewerAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ScrollViewerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ScrollViewerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ScrollViewerAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&ScrollViewerAutomationPeer> for AutomationPeer { + fn from(value: &ScrollViewerAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ScrollViewerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ScrollViewerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ScrollViewerAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&ScrollViewerAutomationPeer> for super::super::DependencyObject { + fn from(value: &ScrollViewerAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ScrollViewerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ScrollViewerAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for ScrollViewerAutomationPeer {} +unsafe impl ::core::marker::Sync for ScrollViewerAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct SearchBoxAutomationPeer(pub ::windows::core::IInspectable); +impl SearchBoxAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::SearchBox>>(owner: Param0) -> ::windows::core::Result { + Self::ISearchBoxAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn ISearchBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } +} +unsafe impl ::windows::core::RuntimeType for SearchBoxAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SearchBoxAutomationPeer;{854011a4-18a6-4f30-939b-8871afa3f5e9})"); +} +unsafe impl ::windows::core::Interface for SearchBoxAutomationPeer { + type Vtable = ISearchBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x854011a4_18a6_4f30_939b_8871afa3f5e9); +} +impl ::windows::core::RuntimeName for SearchBoxAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SearchBoxAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: SearchBoxAutomationPeer) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&SearchBoxAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &SearchBoxAutomationPeer) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SearchBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SearchBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) + } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: SearchBoxAutomationPeer) -> Self { + value.0 + } +} +impl ::core::convert::From<&SearchBoxAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &SearchBoxAutomationPeer) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SearchBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SearchBoxAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: SearchBoxAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&SearchBoxAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &SearchBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SearchBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SearchBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: SearchBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SemanticZoomAutomationPeer> for AutomationPeer { - fn from(value: &SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From<&SearchBoxAutomationPeer> for AutomationPeer { + fn from(value: &SearchBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SearchBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SearchBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: SearchBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SemanticZoomAutomationPeer> for super::super::DependencyObject { - fn from(value: &SemanticZoomAutomationPeer) -> Self { +impl ::core::convert::From<&SearchBoxAutomationPeer> for super::super::DependencyObject { + fn from(value: &SearchBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SearchBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SemanticZoomAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SearchBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for SemanticZoomAutomationPeer {} -unsafe impl ::core::marker::Sync for SemanticZoomAutomationPeer {} +unsafe impl ::core::marker::Send for SearchBoxAutomationPeer {} +unsafe impl ::core::marker::Sync for SearchBoxAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct SettingsFlyoutAutomationPeer(pub ::windows::core::IInspectable); -impl SettingsFlyoutAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::SettingsFlyout>>(owner: Param0) -> ::windows::core::Result { - Self::ISettingsFlyoutAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } +pub struct SelectorAutomationPeer(pub ::windows::core::IInspectable); +impl SelectorAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn CanSelectMultiple(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn IsSelectionRequired(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::Array = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Controls_Primitives")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::Selector>>(owner: Param0) -> ::windows::core::Result { + Self::ISelectorAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn ISettingsFlyoutAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn ISelectorAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for SettingsFlyoutAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SettingsFlyoutAutomationPeer;{d0de0cdb-30cf-47a6-a5eb-9c77f0b0d6dd})"); +unsafe impl ::windows::core::RuntimeType for SelectorAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SelectorAutomationPeer;{162ac829-7115-43ec-b383-a7b71644069d})"); } -unsafe impl ::windows::core::Interface for SettingsFlyoutAutomationPeer { - type Vtable = ISettingsFlyoutAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0de0cdb_30cf_47a6_a5eb_9c77f0b0d6dd); +unsafe impl ::windows::core::Interface for SelectorAutomationPeer { + type Vtable = ISelectorAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x162ac829_7115_43ec_b383_a7b71644069d); } -impl ::windows::core::RuntimeName for SettingsFlyoutAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SettingsFlyoutAutomationPeer"; +impl ::windows::core::RuntimeName for SelectorAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SelectorAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SettingsFlyoutAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: SelectorAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SettingsFlyoutAutomationPeer) -> Self { +impl ::core::convert::From<&SelectorAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &SelectorAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SettingsFlyoutAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectorAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SettingsFlyoutAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectorAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SettingsFlyoutAutomationPeer) -> Self { - value.0 +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: SelectorAutomationPeer) -> Self { + value.0 + } +} +impl ::core::convert::From<&SelectorAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &SelectorAutomationPeer) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: SelectorAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&SelectorAutomationPeer> for super::Provider::ISelectionProvider { + type Error = ::windows::core::Error; + fn try_from(value: &SelectorAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for SelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for &SelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: SelectorAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&SelectorAutomationPeer> for super::Provider::IItemContainerProvider { + type Error = ::windows::core::Error; + fn try_from(value: &SelectorAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for SelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for &SelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IItemContainerProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SettingsFlyoutAutomationPeer) -> Self { - value.0.clone() +impl ::core::convert::From for ItemsControlAutomationPeer { + fn from(value: SelectorAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SettingsFlyoutAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) +impl ::core::convert::From<&SelectorAutomationPeer> for ItemsControlAutomationPeer { + fn from(value: &SelectorAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SettingsFlyoutAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for SelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: SettingsFlyoutAutomationPeer) -> Self { +impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &SelectorAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: SelectorAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &SettingsFlyoutAutomationPeer) -> Self { +impl ::core::convert::From<&SelectorAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &SelectorAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SettingsFlyoutAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SelectorAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SettingsFlyoutAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SelectorAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: SettingsFlyoutAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: SelectorAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for AutomationPeer { - fn from(value: &SettingsFlyoutAutomationPeer) -> Self { +impl ::core::convert::From<&SelectorAutomationPeer> for AutomationPeer { + fn from(value: &SelectorAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SettingsFlyoutAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SelectorAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SettingsFlyoutAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SelectorAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SettingsFlyoutAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: SelectorAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for super::super::DependencyObject { - fn from(value: &SettingsFlyoutAutomationPeer) -> Self { +impl ::core::convert::From<&SelectorAutomationPeer> for super::super::DependencyObject { + fn from(value: &SelectorAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SettingsFlyoutAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SelectorAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SettingsFlyoutAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SelectorAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for SettingsFlyoutAutomationPeer {} -unsafe impl ::core::marker::Sync for SettingsFlyoutAutomationPeer {} +unsafe impl ::core::marker::Send for SelectorAutomationPeer {} +unsafe impl ::core::marker::Sync for SelectorAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct SliderAutomationPeer(pub ::windows::core::IInspectable); -impl SliderAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Slider>>(owner: Param0) -> ::windows::core::Result { - Self::ISliderAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } +pub struct SelectorItemAutomationPeer(pub ::windows::core::IInspectable); +impl SelectorItemAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsReadOnly(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsSelected(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Maximum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Minimum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectionContainer(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn AddToSelection(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Value(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SetValue2(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn Select(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn CreateInstanceWithParentAndItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, SelectorAutomationPeer>>(item: Param0, parent: Param1) -> ::windows::core::Result { + Self::ISelectorItemAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn ISliderAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn ISelectorItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for SliderAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SliderAutomationPeer;{ec30015a-d611-46d0-ae4f-6ecf27dfbaa5})"); +unsafe impl ::windows::core::RuntimeType for SelectorItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SelectorItemAutomationPeer;{ae8b3477-860a-45bb-bf7c-e1b27419d1dd})"); } -unsafe impl ::windows::core::Interface for SliderAutomationPeer { - type Vtable = ISliderAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xec30015a_d611_46d0_ae4f_6ecf27dfbaa5); +unsafe impl ::windows::core::Interface for SelectorItemAutomationPeer { + type Vtable = ISelectorItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae8b3477_860a_45bb_bf7c_e1b27419d1dd); } -impl ::windows::core::RuntimeName for SliderAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SliderAutomationPeer"; +impl ::windows::core::RuntimeName for SelectorItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SelectorItemAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SliderAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: SelectorItemAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&SliderAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SliderAutomationPeer) -> Self { +impl ::core::convert::From<&SelectorItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &SelectorItemAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectorItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectorItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SliderAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: SelectorItemAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&SliderAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SliderAutomationPeer) -> Self { +impl ::core::convert::From<&SelectorItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &SelectorItemAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectorItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectorItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: SliderAutomationPeer) -> ::windows::core::Result { + fn try_from(value: SelectorItemAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&SliderAutomationPeer> for super::Provider::IRangeValueProvider { +impl ::core::convert::TryFrom<&SelectorItemAutomationPeer> for super::Provider::ISelectionItemProvider { type Error = ::windows::core::Error; - fn try_from(value: &SliderAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &SelectorItemAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for SliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for SelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &SliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) +impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionItemProvider> for &SelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::ISelectionItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for RangeBaseAutomationPeer { - fn from(value: SliderAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IVirtualizedItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: SelectorItemAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } } -impl ::core::convert::From<&SliderAutomationPeer> for RangeBaseAutomationPeer { - fn from(value: &SliderAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&SelectorItemAutomationPeer> for super::Provider::IVirtualizedItemProvider { + type Error = ::windows::core::Error; + fn try_from(value: &SelectorItemAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } } -impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for SliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for SelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::windows::core::IntoParam::into_param(&self) } } -impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for &SliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IVirtualizedItemProvider> for &SelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IVirtualizedItemProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: SliderAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for ItemAutomationPeer { + fn from(value: SelectorItemAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SliderAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &SliderAutomationPeer) -> Self { +impl ::core::convert::From<&SelectorItemAutomationPeer> for ItemAutomationPeer { + fn from(value: &SelectorItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for SelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for &SelectorItemAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: SliderAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: SelectorItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SliderAutomationPeer> for AutomationPeer { - fn from(value: &SliderAutomationPeer) -> Self { +impl ::core::convert::From<&SelectorItemAutomationPeer> for AutomationPeer { + fn from(value: &SelectorItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SelectorItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SelectorItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SliderAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: SelectorItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&SliderAutomationPeer> for super::super::DependencyObject { - fn from(value: &SliderAutomationPeer) -> Self { +impl ::core::convert::From<&SelectorItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &SelectorItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SelectorItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SliderAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SelectorItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for SliderAutomationPeer {} -unsafe impl ::core::marker::Sync for SliderAutomationPeer {} +unsafe impl ::core::marker::Send for SelectorItemAutomationPeer {} +unsafe impl ::core::marker::Sync for SelectorItemAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct TextBlockAutomationPeer(pub ::windows::core::IInspectable); -impl TextBlockAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TextBlock>>(owner: Param0) -> ::windows::core::Result { - Self::ITextBlockAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } +pub struct SemanticZoomAutomationPeer(pub ::windows::core::IInspectable); +impl SemanticZoomAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ToggleState(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: super::ToggleState = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn Toggle(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } } - pub fn ITextBlockAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::SemanticZoom>>(owner: Param0) -> ::windows::core::Result { + Self::ISemanticZoomAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn ISemanticZoomAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for TextBlockAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TextBlockAutomationPeer;{be2057f5-6715-4e69-a050-92bd0ce232a9})"); +unsafe impl ::windows::core::RuntimeType for SemanticZoomAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SemanticZoomAutomationPeer;{3c2fac6c-a977-47fc-b44e-2754c0b2bea9})"); } -unsafe impl ::windows::core::Interface for TextBlockAutomationPeer { - type Vtable = ITextBlockAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbe2057f5_6715_4e69_a050_92bd0ce232a9); +unsafe impl ::windows::core::Interface for SemanticZoomAutomationPeer { + type Vtable = ISemanticZoomAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c2fac6c_a977_47fc_b44e_2754c0b2bea9); } -impl ::windows::core::RuntimeName for TextBlockAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TextBlockAutomationPeer"; +impl ::windows::core::RuntimeName for SemanticZoomAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SemanticZoomAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TextBlockAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: SemanticZoomAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&TextBlockAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&SemanticZoomAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &SemanticZoomAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TextBlockAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: SemanticZoomAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&TextBlockAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&SemanticZoomAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &SemanticZoomAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: TextBlockAutomationPeer) -> Self { +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: SemanticZoomAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&SemanticZoomAutomationPeer> for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: &SemanticZoomAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for SemanticZoomAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &SemanticZoomAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: SemanticZoomAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TextBlockAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &TextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&SemanticZoomAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &SemanticZoomAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: TextBlockAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: SemanticZoomAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TextBlockAutomationPeer> for AutomationPeer { - fn from(value: &TextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&SemanticZoomAutomationPeer> for AutomationPeer { + fn from(value: &SemanticZoomAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: TextBlockAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: SemanticZoomAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TextBlockAutomationPeer> for super::super::DependencyObject { - fn from(value: &TextBlockAutomationPeer) -> Self { +impl ::core::convert::From<&SemanticZoomAutomationPeer> for super::super::DependencyObject { + fn from(value: &SemanticZoomAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TextBlockAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SemanticZoomAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for TextBlockAutomationPeer {} -unsafe impl ::core::marker::Sync for TextBlockAutomationPeer {} +unsafe impl ::core::marker::Send for SemanticZoomAutomationPeer {} +unsafe impl ::core::marker::Sync for SemanticZoomAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct TextBoxAutomationPeer(pub ::windows::core::IInspectable); -impl TextBoxAutomationPeer { +pub struct SettingsFlyoutAutomationPeer(pub ::windows::core::IInspectable); +impl SettingsFlyoutAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TextBox>>(owner: Param0) -> ::windows::core::Result { - Self::ITextBoxAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::SettingsFlyout>>(owner: Param0) -> ::windows::core::Result { + Self::ISettingsFlyoutAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ITextBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn ISettingsFlyoutAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for TextBoxAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TextBoxAutomationPeer;{3a4f1ca0-5e5d-4d26-9067-e740bf657a9f})"); +unsafe impl ::windows::core::RuntimeType for SettingsFlyoutAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SettingsFlyoutAutomationPeer;{d0de0cdb-30cf-47a6-a5eb-9c77f0b0d6dd})"); } -unsafe impl ::windows::core::Interface for TextBoxAutomationPeer { - type Vtable = ITextBoxAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3a4f1ca0_5e5d_4d26_9067_e740bf657a9f); +unsafe impl ::windows::core::Interface for SettingsFlyoutAutomationPeer { + type Vtable = ISettingsFlyoutAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0de0cdb_30cf_47a6_a5eb_9c77f0b0d6dd); } -impl ::windows::core::RuntimeName for TextBoxAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TextBoxAutomationPeer"; +impl ::windows::core::RuntimeName for SettingsFlyoutAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SettingsFlyoutAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TextBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: SettingsFlyoutAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&TextBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TextBoxAutomationPeer) -> Self { +impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &SettingsFlyoutAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TextBoxAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: SettingsFlyoutAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&TextBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TextBoxAutomationPeer) -> Self { +impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &SettingsFlyoutAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: TextBoxAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: SettingsFlyoutAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TextBoxAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &TextBoxAutomationPeer) -> Self { +impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &SettingsFlyoutAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: TextBoxAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: SettingsFlyoutAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TextBoxAutomationPeer> for AutomationPeer { - fn from(value: &TextBoxAutomationPeer) -> Self { +impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for AutomationPeer { + fn from(value: &SettingsFlyoutAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: TextBoxAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: SettingsFlyoutAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TextBoxAutomationPeer> for super::super::DependencyObject { - fn from(value: &TextBoxAutomationPeer) -> Self { +impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for super::super::DependencyObject { + fn from(value: &SettingsFlyoutAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TextBoxAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SettingsFlyoutAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for TextBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for TextBoxAutomationPeer {} +unsafe impl ::core::marker::Send for SettingsFlyoutAutomationPeer {} +unsafe impl ::core::marker::Sync for SettingsFlyoutAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ThumbAutomationPeer(pub ::windows::core::IInspectable); -impl ThumbAutomationPeer { - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::Thumb>>(owner: Param0) -> ::windows::core::Result { - Self::IThumbAutomationPeerFactory(|this| unsafe { +pub struct SliderAutomationPeer(pub ::windows::core::IInspectable); +impl SliderAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Slider>>(owner: Param0) -> ::windows::core::Result { + Self::ISliderAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } + pub fn ISliderAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for SliderAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.SliderAutomationPeer;{ec30015a-d611-46d0-ae4f-6ecf27dfbaa5})"); +} +unsafe impl ::windows::core::Interface for SliderAutomationPeer { + type Vtable = ISliderAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xec30015a_d611_46d0_ae4f_6ecf27dfbaa5); +} +impl ::windows::core::RuntimeName for SliderAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.SliderAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: SliderAutomationPeer) -> Self { + value.0 .0 } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&SliderAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &SliderAutomationPeer) -> Self { + value.0 .0.clone() } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: SliderAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&SliderAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &SliderAutomationPeer) -> Self { + value.0.clone() } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { + type Error = ::windows::core::Error; + fn try_from(value: SliderAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&SliderAutomationPeer> for super::Provider::IRangeValueProvider { + type Error = ::windows::core::Error; + fn try_from(value: &SliderAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IRangeValueProvider> for &SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IRangeValueProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for RangeBaseAutomationPeer { + fn from(value: SliderAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SliderAutomationPeer> for RangeBaseAutomationPeer { + fn from(value: &SliderAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for &SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: SliderAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SliderAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &SliderAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: SliderAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SliderAutomationPeer> for AutomationPeer { + fn from(value: &SliderAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: SliderAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl ::core::convert::From<&SliderAutomationPeer> for super::super::DependencyObject { + fn from(value: &SliderAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SliderAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IThumbAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); +} +unsafe impl ::core::marker::Send for SliderAutomationPeer {} +unsafe impl ::core::marker::Sync for SliderAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct TextBlockAutomationPeer(pub ::windows::core::IInspectable); +impl TextBlockAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TextBlock>>(owner: Param0) -> ::windows::core::Result { + Self::ITextBlockAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn ITextBlockAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ThumbAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ThumbAutomationPeer;{dc2949b5-b45e-4d6d-892f-d9422c950efb})"); +unsafe impl ::windows::core::RuntimeType for TextBlockAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TextBlockAutomationPeer;{be2057f5-6715-4e69-a050-92bd0ce232a9})"); } -unsafe impl ::windows::core::Interface for ThumbAutomationPeer { - type Vtable = IThumbAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdc2949b5_b45e_4d6d_892f_d9422c950efb); +unsafe impl ::windows::core::Interface for TextBlockAutomationPeer { + type Vtable = ITextBlockAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbe2057f5_6715_4e69_a050_92bd0ce232a9); } -impl ::windows::core::RuntimeName for ThumbAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ThumbAutomationPeer"; +impl ::windows::core::RuntimeName for TextBlockAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TextBlockAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ThumbAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: TextBlockAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ThumbAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ThumbAutomationPeer) -> Self { +impl ::core::convert::From<&TextBlockAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &TextBlockAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ThumbAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: TextBlockAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ThumbAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ThumbAutomationPeer) -> Self { +impl ::core::convert::From<&TextBlockAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &TextBlockAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ThumbAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: TextBlockAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ThumbAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ThumbAutomationPeer) -> Self { +impl ::core::convert::From<&TextBlockAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &TextBlockAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ThumbAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: TextBlockAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ThumbAutomationPeer> for AutomationPeer { - fn from(value: &ThumbAutomationPeer) -> Self { +impl ::core::convert::From<&TextBlockAutomationPeer> for AutomationPeer { + fn from(value: &TextBlockAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ThumbAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: TextBlockAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ThumbAutomationPeer> for super::super::DependencyObject { - fn from(value: &ThumbAutomationPeer) -> Self { +impl ::core::convert::From<&TextBlockAutomationPeer> for super::super::DependencyObject { + fn from(value: &TextBlockAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ThumbAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TextBlockAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ThumbAutomationPeer {} -unsafe impl ::core::marker::Sync for ThumbAutomationPeer {} +unsafe impl ::core::marker::Send for TextBlockAutomationPeer {} +unsafe impl ::core::marker::Sync for TextBlockAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct TimePickerAutomationPeer(pub ::windows::core::IInspectable); -impl TimePickerAutomationPeer { +pub struct TextBoxAutomationPeer(pub ::windows::core::IInspectable); +impl TextBoxAutomationPeer { #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TimePicker>>(owner: Param0) -> ::windows::core::Result { - Self::ITimePickerAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TextBox>>(owner: Param0) -> ::windows::core::Result { + Self::ITextBoxAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn ITimePickerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn ITextBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for TimePickerAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TimePickerAutomationPeer;{a43d44ef-3285-4df7-b4a4-e4cdf36a3a17})"); +unsafe impl ::windows::core::RuntimeType for TextBoxAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TextBoxAutomationPeer;{3a4f1ca0-5e5d-4d26-9067-e740bf657a9f})"); } -unsafe impl ::windows::core::Interface for TimePickerAutomationPeer { - type Vtable = ITimePickerAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa43d44ef_3285_4df7_b4a4_e4cdf36a3a17); +unsafe impl ::windows::core::Interface for TextBoxAutomationPeer { + type Vtable = ITextBoxAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3a4f1ca0_5e5d_4d26_9067_e740bf657a9f); } -impl ::windows::core::RuntimeName for TimePickerAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TimePickerAutomationPeer"; +impl ::windows::core::RuntimeName for TextBoxAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TextBoxAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TimePickerAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: TextBoxAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&TimePickerAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TimePickerAutomationPeer) -> Self { +impl ::core::convert::From<&TextBoxAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &TextBoxAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TimePickerAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: TextBoxAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&TimePickerAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TimePickerAutomationPeer) -> Self { +impl ::core::convert::From<&TextBoxAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &TextBoxAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: TimePickerAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: TextBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TimePickerAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &TimePickerAutomationPeer) -> Self { +impl ::core::convert::From<&TextBoxAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &TextBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: TimePickerAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: TextBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TimePickerAutomationPeer> for AutomationPeer { - fn from(value: &TimePickerAutomationPeer) -> Self { +impl ::core::convert::From<&TextBoxAutomationPeer> for AutomationPeer { + fn from(value: &TextBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: TimePickerAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: TextBoxAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TimePickerAutomationPeer> for super::super::DependencyObject { - fn from(value: &TimePickerAutomationPeer) -> Self { +impl ::core::convert::From<&TextBoxAutomationPeer> for super::super::DependencyObject { + fn from(value: &TextBoxAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TimePickerAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TextBoxAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for TimePickerAutomationPeer {} -unsafe impl ::core::marker::Sync for TimePickerAutomationPeer {} +unsafe impl ::core::marker::Send for TextBoxAutomationPeer {} +unsafe impl ::core::marker::Sync for TextBoxAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct TimePickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); -impl TimePickerFlyoutPresenterAutomationPeer { - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +pub struct ThumbAutomationPeer(pub ::windows::core::IInspectable); +impl ThumbAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls_Primitives")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::Thumb>>(owner: Param0) -> ::windows::core::Result { + Self::IThumbAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IThumbAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ThumbAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ThumbAutomationPeer;{dc2949b5-b45e-4d6d-892f-d9422c950efb})"); +} +unsafe impl ::windows::core::Interface for ThumbAutomationPeer { + type Vtable = IThumbAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdc2949b5_b45e_4d6d_892f_d9422c950efb); +} +impl ::windows::core::RuntimeName for ThumbAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ThumbAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ThumbAutomationPeer) -> Self { + value.0 .0 } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&ThumbAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ThumbAutomationPeer) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ThumbAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +impl ::core::convert::From<&ThumbAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ThumbAutomationPeer) -> Self { + value.0.clone() } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ThumbAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl ::core::convert::From<&ThumbAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ThumbAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ThumbAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ThumbAutomationPeer> for AutomationPeer { + fn from(value: &ThumbAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ThumbAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ThumbAutomationPeer> for super::super::DependencyObject { + fn from(value: &ThumbAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ThumbAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for ThumbAutomationPeer {} +unsafe impl ::core::marker::Sync for ThumbAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct TimePickerAutomationPeer(pub ::windows::core::IInspectable); +impl TimePickerAutomationPeer { + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TimePicker>>(owner: Param0) -> ::windows::core::Result { + Self::ITimePickerAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn ITimePickerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for TimePickerFlyoutPresenterAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TimePickerFlyoutPresenterAutomationPeer;{da93ee27-82f1-4701-8706-be297bf06043})"); +unsafe impl ::windows::core::RuntimeType for TimePickerAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TimePickerAutomationPeer;{a43d44ef-3285-4df7-b4a4-e4cdf36a3a17})"); } -unsafe impl ::windows::core::Interface for TimePickerFlyoutPresenterAutomationPeer { - type Vtable = ITimePickerFlyoutPresenterAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda93ee27_82f1_4701_8706_be297bf06043); +unsafe impl ::windows::core::Interface for TimePickerAutomationPeer { + type Vtable = ITimePickerAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa43d44ef_3285_4df7_b4a4_e4cdf36a3a17); } -impl ::windows::core::RuntimeName for TimePickerFlyoutPresenterAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TimePickerFlyoutPresenterAutomationPeer"; +impl ::windows::core::RuntimeName for TimePickerAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TimePickerAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: TimePickerAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &TimePickerAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: TimePickerAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &TimePickerAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: TimePickerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &TimePickerAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: TimePickerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for AutomationPeer { - fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerAutomationPeer> for AutomationPeer { + fn from(value: &TimePickerAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: TimePickerAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for super::super::DependencyObject { - fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerAutomationPeer> for super::super::DependencyObject { + fn from(value: &TimePickerAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TimePickerFlyoutPresenterAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TimePickerAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for TimePickerFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for TimePickerFlyoutPresenterAutomationPeer {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ToggleButtonAutomationPeer(pub ::windows::core::IInspectable); -impl ToggleButtonAutomationPeer { - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ToggleState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Toggle(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ToggleButton>>(owner: Param0) -> ::windows::core::Result { - Self::IToggleButtonAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IToggleButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ToggleButtonAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ToggleButtonAutomationPeer;{62dbe6c5-bc0a-45bb-bf77-ea0f1502891f})"); +unsafe impl ::core::marker::Send for TimePickerAutomationPeer {} +unsafe impl ::core::marker::Sync for TimePickerAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct TimePickerFlyoutPresenterAutomationPeer(pub ::windows::core::IInspectable); +impl TimePickerFlyoutPresenterAutomationPeer {} +unsafe impl ::windows::core::RuntimeType for TimePickerFlyoutPresenterAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TimePickerFlyoutPresenterAutomationPeer;{da93ee27-82f1-4701-8706-be297bf06043})"); } -unsafe impl ::windows::core::Interface for ToggleButtonAutomationPeer { - type Vtable = IToggleButtonAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62dbe6c5_bc0a_45bb_bf77_ea0f1502891f); +unsafe impl ::windows::core::Interface for TimePickerFlyoutPresenterAutomationPeer { + type Vtable = ITimePickerFlyoutPresenterAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda93ee27_82f1_4701_8706_be297bf06043); } -impl ::windows::core::RuntimeName for ToggleButtonAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ToggleButtonAutomationPeer"; +impl ::windows::core::RuntimeName for TimePickerFlyoutPresenterAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TimePickerFlyoutPresenterAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ToggleButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ToggleButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IToggleProvider { - type Error = ::windows::core::Error; - fn try_from(value: ToggleButtonAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ToggleButtonAutomationPeer> for super::Provider::IToggleProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ToggleButtonAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for ToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &ToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for ButtonBaseAutomationPeer { - fn from(value: ToggleButtonAutomationPeer) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ToggleButtonAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &ToggleButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for ToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &ToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ToggleButtonAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ToggleButtonAutomationPeer> for AutomationPeer { - fn from(value: &ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for AutomationPeer { + fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ToggleButtonAutomationPeer> for super::super::DependencyObject { - fn from(value: &ToggleButtonAutomationPeer) -> Self { +impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for super::super::DependencyObject { + fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ToggleButtonAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TimePickerFlyoutPresenterAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ToggleButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for ToggleButtonAutomationPeer {} +unsafe impl ::core::marker::Send for TimePickerFlyoutPresenterAutomationPeer {} +unsafe impl ::core::marker::Sync for TimePickerFlyoutPresenterAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ToggleMenuFlyoutItemAutomationPeer(pub ::windows::core::IInspectable); -impl ToggleMenuFlyoutItemAutomationPeer { +pub struct ToggleButtonAutomationPeer(pub ::windows::core::IInspectable); +impl ToggleButtonAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] pub fn ToggleState(&self) -> ::windows::core::Result { let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: super::ToggleState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Toggle(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ToggleMenuFlyoutItem>>(owner: Param0) -> ::windows::core::Result { - Self::IToggleMenuFlyoutItemAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IToggleMenuFlyoutItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Toggle(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } + } + #[cfg(feature = "UI_Xaml_Controls_Primitives")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ToggleButton>>(owner: Param0) -> ::windows::core::Result { + Self::IToggleButtonAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IToggleButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ToggleMenuFlyoutItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ToggleMenuFlyoutItemAutomationPeer;{6b57eafe-6af1-4903-8373-3437bf352345})"); +unsafe impl ::windows::core::RuntimeType for ToggleButtonAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ToggleButtonAutomationPeer;{62dbe6c5-bc0a-45bb-bf77-ea0f1502891f})"); } -unsafe impl ::windows::core::Interface for ToggleMenuFlyoutItemAutomationPeer { - type Vtable = IToggleMenuFlyoutItemAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6b57eafe_6af1_4903_8373_3437bf352345); +unsafe impl ::windows::core::Interface for ToggleButtonAutomationPeer { + type Vtable = IToggleButtonAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62dbe6c5_bc0a_45bb_bf77_ea0f1502891f); } -impl ::windows::core::RuntimeName for ToggleMenuFlyoutItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ToggleMenuFlyoutItemAutomationPeer"; +impl ::windows::core::RuntimeName for ToggleButtonAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ToggleButtonAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ToggleButtonAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleButtonAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ToggleButtonAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ToggleButtonAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleButtonAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ToggleButtonAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom for super::Provider::IToggleProvider { type Error = ::windows::core::Error; - fn try_from(value: ToggleMenuFlyoutItemAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ToggleButtonAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ToggleMenuFlyoutItemAutomationPeer> for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom<&ToggleButtonAutomationPeer> for super::Provider::IToggleProvider { type Error = ::windows::core::Error; - fn try_from(value: &ToggleMenuFlyoutItemAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ToggleButtonAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From for ButtonBaseAutomationPeer { + fn from(value: ToggleButtonAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&ToggleButtonAutomationPeer> for ButtonBaseAutomationPeer { + fn from(value: &ToggleButtonAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for ToggleButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &ToggleButtonAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ToggleButtonAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleButtonAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ToggleButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ToggleButtonAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for AutomationPeer { - fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleButtonAutomationPeer> for AutomationPeer { + fn from(value: &ToggleButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ToggleButtonAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleButtonAutomationPeer> for super::super::DependencyObject { + fn from(value: &ToggleButtonAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ToggleMenuFlyoutItemAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ToggleButtonAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ToggleMenuFlyoutItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ToggleMenuFlyoutItemAutomationPeer {} +unsafe impl ::core::marker::Send for ToggleButtonAutomationPeer {} +unsafe impl ::core::marker::Sync for ToggleButtonAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ToggleSwitchAutomationPeer(pub ::windows::core::IInspectable); -impl ToggleSwitchAutomationPeer { +pub struct ToggleMenuFlyoutItemAutomationPeer(pub ::windows::core::IInspectable); +impl ToggleMenuFlyoutItemAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] pub fn ToggleState(&self) -> ::windows::core::Result { let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::ToggleState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Toggle(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ToggleSwitch>>(owner: Param0) -> ::windows::core::Result { - Self::IToggleSwitchAutomationPeerFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::ToggleState = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IToggleSwitchAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Toggle(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } + } + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ToggleMenuFlyoutItem>>(owner: Param0) -> ::windows::core::Result { + Self::IToggleMenuFlyoutItemAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IToggleMenuFlyoutItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ToggleSwitchAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ToggleSwitchAutomationPeer;{c011f174-e89e-4790-bf9a-78ebb5f59e9f})"); +unsafe impl ::windows::core::RuntimeType for ToggleMenuFlyoutItemAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ToggleMenuFlyoutItemAutomationPeer;{6b57eafe-6af1-4903-8373-3437bf352345})"); } -unsafe impl ::windows::core::Interface for ToggleSwitchAutomationPeer { - type Vtable = IToggleSwitchAutomationPeer_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc011f174_e89e_4790_bf9a_78ebb5f59e9f); +unsafe impl ::windows::core::Interface for ToggleMenuFlyoutItemAutomationPeer { + type Vtable = IToggleMenuFlyoutItemAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6b57eafe_6af1_4903_8373_3437bf352345); } -impl ::windows::core::RuntimeName for ToggleSwitchAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ToggleSwitchAutomationPeer"; +impl ::windows::core::RuntimeName for ToggleMenuFlyoutItemAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ToggleMenuFlyoutItemAutomationPeer"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { value.0 .0 } } -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { value.0 } } -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom for super::Provider::IToggleProvider { type Error = ::windows::core::Error; - fn try_from(value: ToggleSwitchAutomationPeer) -> ::windows::core::Result { + fn try_from(value: ToggleMenuFlyoutItemAutomationPeer) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ToggleSwitchAutomationPeer> for super::Provider::IToggleProvider { +impl ::core::convert::TryFrom<&ToggleMenuFlyoutItemAutomationPeer> for super::Provider::IToggleProvider { type Error = ::windows::core::Error; - fn try_from(value: &ToggleSwitchAutomationPeer) -> ::windows::core::Result { + fn try_from(value: &ToggleMenuFlyoutItemAutomationPeer) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for AutomationPeer { - fn from(value: ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From for AutomationPeer { + fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for AutomationPeer { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for AutomationPeer { + fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for super::super::DependencyObject { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { +impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for super::super::DependencyObject { + fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ToggleSwitchAutomationPeer { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ToggleMenuFlyoutItemAutomationPeer { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ToggleSwitchAutomationPeer {} -unsafe impl ::core::marker::Sync for ToggleSwitchAutomationPeer {} +unsafe impl ::core::marker::Send for ToggleMenuFlyoutItemAutomationPeer {} +unsafe impl ::core::marker::Sync for ToggleMenuFlyoutItemAutomationPeer {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct TreeViewItemAutomationPeer(pub ::windows::core::IInspectable); -impl TreeViewItemAutomationPeer { +pub struct ToggleSwitchAutomationPeer(pub ::windows::core::IInspectable); +impl ToggleSwitchAutomationPeer { #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ExpandCollapseState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ToggleState(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::ExpandCollapseState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::ToggleState = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Collapse(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Toggle(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Expand(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } - } #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TreeViewItem>>(owner: Param0) -> ::windows::core::Result { - Self::ITreeViewItemAutomationPeerFactory(|this| unsafe { + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ToggleSwitch>>(owner: Param0) -> ::windows::core::Result { + Self::IToggleSwitchAutomationPeerFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } + pub fn IToggleSwitchAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ToggleSwitchAutomationPeer { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ToggleSwitchAutomationPeer;{c011f174-e89e-4790-bf9a-78ebb5f59e9f})"); +} +unsafe impl ::windows::core::Interface for ToggleSwitchAutomationPeer { + type Vtable = IToggleSwitchAutomationPeer_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc011f174_e89e_4790_bf9a_78ebb5f59e9f); +} +impl ::windows::core::RuntimeName for ToggleSwitchAutomationPeer { + const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ToggleSwitchAutomationPeer"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ToggleSwitchAutomationPeer) -> Self { + value.0 .0 } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&ToggleSwitchAutomationPeer> for ::windows::core::IUnknown { + fn from(value: &ToggleSwitchAutomationPeer) -> Self { + value.0 .0.clone() } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ToggleSwitchAutomationPeer) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&ToggleSwitchAutomationPeer> for ::windows::core::IInspectable { + fn from(value: &ToggleSwitchAutomationPeer) -> Self { + value.0.clone() } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: ToggleSwitchAutomationPeer) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl ::core::convert::TryFrom<&ToggleSwitchAutomationPeer> for super::Provider::IToggleProvider { + type Error = ::windows::core::Error; + fn try_from(value: &ToggleSwitchAutomationPeer) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Automation_Provider")] +impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for &ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IToggleProvider> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for FrameworkElementAutomationPeer { + fn from(value: ToggleSwitchAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ToggleSwitchAutomationPeer> for FrameworkElementAutomationPeer { + fn from(value: &ToggleSwitchAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for AutomationPeer { + fn from(value: ToggleSwitchAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ToggleSwitchAutomationPeer> for AutomationPeer { + fn from(value: &ToggleSwitchAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ToggleSwitchAutomationPeer) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ToggleSwitchAutomationPeer> for super::super::DependencyObject { + fn from(value: &ToggleSwitchAutomationPeer) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ToggleSwitchAutomationPeer { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ToggleSwitchAutomationPeer {} +unsafe impl ::core::marker::Sync for ToggleSwitchAutomationPeer {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct TreeViewItemAutomationPeer(pub ::windows::core::IInspectable); +impl TreeViewItemAutomationPeer { + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn ExpandCollapseState(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::ExpandCollapseState = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Collapse(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this)).ok() } } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Automation_Provider")] + pub fn Expand(&self) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this)).ok() } } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "UI_Xaml_Controls")] + pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TreeViewItem>>(owner: Param0) -> ::windows::core::Result { + Self::ITreeViewItemAutomationPeerFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } pub fn ITreeViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); @@ -57934,474 +19728,6 @@ impl TreeViewListAutomationPeer { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), patterninterface, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), eventid).ok() } - } - pub fn RaisePropertyChangedEvent<'a, Param0: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, automationproperty: Param0, oldvalue: Param1, newvalue: Param2) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationControlType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationOrientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "deprecated")] - #[cfg(feature = "Foundation")] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), point.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLiveSetting = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), direction, &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetElementFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, pointinwindowcoordinates: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), pointinwindowcoordinates.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn SetParent<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), peer.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn RaiseTextEditTextChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>>(&self, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseStructureChangedEvent<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, structurechangetype: AutomationStructureChangeType, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), structurechangetype, child.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn PeerFromProvider<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>>(&self, provider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), provider.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ProviderFromPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, peer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), peer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Owner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateItemAutomationPeer<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, super::Provider::IRawElementProviderSimple>, Param1: ::windows::core::IntoParam<'a, super::AutomationProperty>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, startafter: Param0, automationproperty: Param1, value: Param2) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::Array = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), ::windows::core::Array::::set_abi_len(&mut result__), &mut result__ as *mut _ as _).and_then(|| result__) - } - } - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationLandmarkType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RaiseNotificationEvent<'a, Param2: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: Param2, activityid: Param3) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: AutomationHeadingLevel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } pub fn ITreeViewListAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } diff --git a/src/Windows/UI/Xaml/Automation/Provider/mod.rs b/src/Windows/UI/Xaml/Automation/Provider/mod.rs index ab497fb176..4389669e07 100644 --- a/src/Windows/UI/Xaml/Automation/Provider/mod.rs +++ b/src/Windows/UI/Xaml/Automation/Provider/mod.rs @@ -1121,56 +1121,7 @@ pub struct IRangeValueProvider_abi( #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] pub struct IRawElementProviderSimple(pub ::windows::core::IInspectable); -impl IRawElementProviderSimple { - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} +impl IRawElementProviderSimple {} unsafe impl ::windows::core::RuntimeType for IRawElementProviderSimple { const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple;{ec752224-9b77-4720-bb21-4ac89fdb1afd})"); } diff --git a/src/Windows/UI/Xaml/Automation/mod.rs b/src/Windows/UI/Xaml/Automation/mod.rs index b6055dc6e7..06edbbbc52 100644 --- a/src/Windows/UI/Xaml/Automation/mod.rs +++ b/src/Windows/UI/Xaml/Automation/mod.rs @@ -244,54 +244,6 @@ impl AutomationAnnotation { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IAutomationAnnotationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } diff --git a/src/Windows/UI/Xaml/Controls/Maps/mod.rs b/src/Windows/UI/Xaml/Controls/Maps/mod.rs index 087144b85b..b67a488ed4 100644 --- a/src/Windows/UI/Xaml/Controls/Maps/mod.rs +++ b/src/Windows/UI/Xaml/Controls/Maps/mod.rs @@ -22,54 +22,6 @@ impl CustomMapTileDataSource { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn ICustomMapTileDataSourceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -226,54 +178,6 @@ impl HttpMapTileDataSource { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), uriformatstring.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IHttpMapTileDataSourceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -3137,54 +3041,6 @@ impl LocalMapTileDataSource { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), uriformatstring.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn ILocalMapTileDataSourceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -3546,131 +3402,6 @@ impl MapBillboard { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn ZIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetZIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapTabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMapTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapStyleSheetEntry(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetMapStyleSheetEntry<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn MapStyleSheetEntryState(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetMapStyleSheetEntryState<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } pub fn IMapBillboardFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -3861,54 +3592,6 @@ impl MapCamera { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), location.into_param().abi(), headingindegrees, pitchindegrees, rollindegrees, fieldofviewindegrees, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapCameraFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -5276,2278 +4959,63 @@ impl MapControl { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } + pub fn IMapControlStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } + pub fn IMapControlStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IMapControlStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IMapControlStatics5 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IMapControlStatics6 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn IMapControlStatics7 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } + pub fn IMapControlStatics8 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for MapControl { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControl;{42d0b851-5256-4747-9e6c-0d11e966141e})"); +} +unsafe impl ::windows::core::Interface for MapControl { + type Vtable = IMapControl_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x42d0b851_5256_4747_9e6c_0d11e966141e); +} +impl ::windows::core::RuntimeName for MapControl { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControl"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MapControl) -> Self { + value.0 .0 } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MapControl> for ::windows::core::IUnknown { + fn from(value: &MapControl) -> Self { + value.0 .0.clone() } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControl { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style2(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle2<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, super::Primitives::FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IMapControlStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IMapControlStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IMapControlStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IMapControlStatics5 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IMapControlStatics6 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IMapControlStatics7 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IMapControlStatics8 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for MapControl { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControl;{42d0b851-5256-4747-9e6c-0d11e966141e})"); -} -unsafe impl ::windows::core::Interface for MapControl { - type Vtable = IMapControl_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x42d0b851_5256_4747_9e6c_0d11e966141e); -} -impl ::windows::core::RuntimeName for MapControl { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControl"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControl) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&MapControl> for ::windows::core::IUnknown { - fn from(value: &MapControl) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControl { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControl { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControl { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } } impl ::core::convert::From for ::windows::core::IInspectable { @@ -8112,54 +5580,6 @@ impl MapControlDataHelper { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), rasterrendermode, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapControlDataHelperFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -8599,54 +6019,6 @@ impl MapCustomExperience { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapCustomExperienceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -8917,54 +6289,6 @@ impl MapElement { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapElementStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -9115,184 +6439,59 @@ impl MapElement3D { let this = self; unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } } - pub fn Roll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRoll(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn LocationProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn HeadingProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PitchProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn RollProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ScaleProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn ZIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetZIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapTabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMapTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapStyleSheetEntry(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Roll(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMapStyleSheetEntry<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetRoll(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } } - pub fn MapStyleSheetEntryState(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation_Numerics")] + pub fn Scale(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMapStyleSheetEntryState<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation_Numerics")] + pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn LocationProperty() -> ::windows::core::Result { + Self::IMapElement3DStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn HeadingProperty() -> ::windows::core::Result { + Self::IMapElement3DStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn PitchProperty() -> ::windows::core::Result { + Self::IMapElement3DStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + pub fn RollProperty() -> ::windows::core::Result { + Self::IMapElement3DStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn ScaleProperty() -> ::windows::core::Result { + Self::IMapElement3DStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } pub fn IMapElement3DStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); @@ -9756,87 +6955,6 @@ impl MapElementsLayer { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn MapTabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMapTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ZIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetZIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } pub fn IMapElementsLayerStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -10303,208 +7421,83 @@ impl MapIcon { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Devices_Geolocation")] - pub fn SetLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Title(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn NormalizedAnchorPoint(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetNormalizedAnchorPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Storage_Streams")] - pub fn Image(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Storage_Streams")] - pub fn SetImage<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Storage::Streams::IRandomAccessStreamReference>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CollisionBehaviorDesired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: MapElementCollisionBehavior = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCollisionBehaviorDesired(&self, value: MapElementCollisionBehavior) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LocationProperty() -> ::windows::core::Result { - Self::IMapIconStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn TitleProperty() -> ::windows::core::Result { - Self::IMapIconStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn NormalizedAnchorPointProperty() -> ::windows::core::Result { - Self::IMapIconStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CollisionBehaviorDesiredProperty() -> ::windows::core::Result { - Self::IMapIconStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn ZIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetZIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapTabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMapTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapStyleSheetEntry(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetMapStyleSheetEntry<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Devices_Geolocation")] + pub fn SetLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn MapStyleSheetEntryState(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Title(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn SetMapStyleSheetEntryState<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn NormalizedAnchorPoint(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn SetNormalizedAnchorPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Storage_Streams")] + pub fn Image(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Storage_Streams")] + pub fn SetImage<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Storage::Streams::IRandomAccessStreamReference>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn CollisionBehaviorDesired(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { + let mut result__: MapElementCollisionBehavior = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } + } + pub fn SetCollisionBehaviorDesired(&self, value: MapElementCollisionBehavior) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } + pub fn LocationProperty() -> ::windows::core::Result { + Self::IMapIconStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn TitleProperty() -> ::windows::core::Result { + Self::IMapIconStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn NormalizedAnchorPointProperty() -> ::windows::core::Result { + Self::IMapIconStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn CollisionBehaviorDesiredProperty() -> ::windows::core::Result { + Self::IMapIconStatics2(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } pub fn IMapIconStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -10633,54 +7626,6 @@ impl MapInputEventArgs { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } } unsafe impl ::windows::core::RuntimeType for MapInputEventArgs { const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapInputEventArgs;{9fc503a0-a8a2-4394-92e9-2247764f2f49})"); @@ -10840,54 +7785,6 @@ impl MapItemsControl { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapItemsControlStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -11026,54 +7923,6 @@ impl MapLayer { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapLayerStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -11202,54 +8051,6 @@ impl MapModel3D { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapModel3DStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -11463,136 +8264,11 @@ impl MapPolygon { #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] pub fn Paths(&self) -> ::windows::core::Result> { let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn ZIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetZIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapTabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMapTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapStyleSheetEntry(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetMapStyleSheetEntry<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn MapStyleSheetEntryState(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetMapStyleSheetEntryState<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } pub fn IMapPolygonStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -11759,131 +8435,6 @@ impl MapPolyline { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn ZIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetZIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapTabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMapTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MapStyleSheetEntry(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetMapStyleSheetEntry<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn MapStyleSheetEntryState(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetMapStyleSheetEntryState<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } pub fn IMapPolylineStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -12123,54 +8674,6 @@ impl MapRouteView { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), route.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapRouteViewFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -12334,54 +8837,6 @@ impl MapScene { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), locations.into_param().abi(), headingindegrees, pitchindegrees, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapSceneStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -12545,54 +9000,6 @@ impl MapStyleSheet { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), styleasjson.into_param().abi(), stylesheet as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapStyleSheetStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -13453,54 +9860,6 @@ impl MapTileDataSource { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapTileDataSourceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -13905,54 +10264,6 @@ impl MapTileSource { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IMapTileSourceStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -14445,54 +10756,6 @@ impl StreetsideExperience { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), panorama.into_param().abi(), headingindegrees, pitchindegrees, fieldofviewindegrees, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IStreetsideExperienceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } @@ -14616,54 +10879,6 @@ impl StreetsidePanorama { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), location.into_param().abi(), radiusinmeters, &mut result__).from_abi::>(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } pub fn IStreetsidePanoramaStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } diff --git a/src/Windows/UI/Xaml/Controls/Primitives/mod.rs b/src/Windows/UI/Xaml/Controls/Primitives/mod.rs index 3130ba21b0..2e6acc87d4 100644 --- a/src/Windows/UI/Xaml/Controls/Primitives/mod.rs +++ b/src/Windows/UI/Xaml/Controls/Primitives/mod.rs @@ -33,54 +33,6 @@ impl AppBarButtonTemplateSettings { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } } unsafe impl ::windows::core::RuntimeType for AppBarButtonTemplateSettings { const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.AppBarButtonTemplateSettings;{cbc9b39d-0c95-4951-bff2-13963691c366})"); @@ -229,54 +181,6 @@ impl AppBarTemplateSettings { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } } unsafe impl ::windows::core::RuntimeType for AppBarTemplateSettings { const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.AppBarTemplateSettings;{bcc2a863-eb35-423c-8389-d7827be3bf67})"); @@ -361,54 +265,6 @@ impl AppBarToggleButtonTemplateSettings { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } } unsafe impl ::windows::core::RuntimeType for AppBarToggleButtonTemplateSettings { const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.AppBarToggleButtonTemplateSettings;{aaf99c48-d8f4-40d9-9fa3-3a64f0fec5d8})"); @@ -578,69675 +434,15610 @@ impl ButtonBase { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } + pub fn IButtonBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for ButtonBase { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ButtonBase;{fa002c1a-494e-46cf-91d4-e14a8d798674})"); +} +unsafe impl ::windows::core::Interface for ButtonBase { + type Vtable = IButtonBase_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798674); +} +impl ::windows::core::RuntimeName for ButtonBase { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ButtonBase"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ButtonBase) -> Self { + value.0 .0 } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&ButtonBase> for ::windows::core::IUnknown { + fn from(value: &ButtonBase) -> Self { + value.0 .0.clone() } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ButtonBase) -> Self { + value.0 } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl ::core::convert::From<&ButtonBase> for ::windows::core::IInspectable { + fn from(value: &ButtonBase) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: ButtonBase) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ButtonBase> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &ButtonBase) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: ButtonBase) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ButtonBase> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &ButtonBase) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::ContentControl { + fn from(value: ButtonBase) -> Self { + ::core::convert::Into::::into(&value) } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ButtonBase> for super::ContentControl { + fn from(value: &ButtonBase) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::Control { + fn from(value: ButtonBase) -> Self { + ::core::convert::Into::::into(&value) } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ButtonBase> for super::Control { + fn from(value: &ButtonBase) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: ButtonBase) -> Self { + ::core::convert::Into::::into(&value) } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ButtonBase> for super::super::FrameworkElement { + fn from(value: &ButtonBase) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: ButtonBase) -> Self { + ::core::convert::Into::::into(&value) } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ButtonBase> for super::super::UIElement { + fn from(value: &ButtonBase) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ButtonBase) -> Self { + ::core::convert::Into::::into(&value) } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From<&ButtonBase> for super::super::DependencyObject { + fn from(value: &ButtonBase) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ButtonBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +unsafe impl ::core::marker::Send for ButtonBase {} +unsafe impl ::core::marker::Sync for ButtonBase {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct CalendarPanel(pub ::windows::core::IInspectable); +impl CalendarPanel { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for CalendarPanel { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CalendarPanel;{fcd55a2d-02d3-4ee6-9a90-9df3ead00994})"); +} +unsafe impl ::windows::core::Interface for CalendarPanel { + type Vtable = ICalendarPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfcd55a2d_02d3_4ee6_9a90_9df3ead00994); +} +impl ::windows::core::RuntimeName for CalendarPanel { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CalendarPanel"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: CalendarPanel) -> Self { + value.0 .0 } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&CalendarPanel> for ::windows::core::IUnknown { + fn from(value: &CalendarPanel) -> Self { + value.0 .0.clone() } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: CalendarPanel) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&CalendarPanel> for ::windows::core::IInspectable { + fn from(value: &CalendarPanel) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: CalendarPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&CalendarPanel> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &CalendarPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: CalendarPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&CalendarPanel> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &CalendarPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::Panel { + fn from(value: CalendarPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&CalendarPanel> for super::Panel { + fn from(value: &CalendarPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: CalendarPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&CalendarPanel> for super::super::FrameworkElement { + fn from(value: &CalendarPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: CalendarPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&CalendarPanel> for super::super::UIElement { + fn from(value: &CalendarPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: CalendarPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&CalendarPanel> for super::super::DependencyObject { + fn from(value: &CalendarPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CalendarPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for CalendarPanel {} +unsafe impl ::core::marker::Sync for CalendarPanel {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct CalendarViewTemplateSettings(pub ::windows::core::IInspectable); +impl CalendarViewTemplateSettings { + pub fn MinViewWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HeaderText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WeekDay1(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WeekDay2(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WeekDay3(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WeekDay4(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WeekDay5(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WeekDay6(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WeekDay7(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HasMoreContentAfter(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HasMoreContentBefore(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HasMoreViews(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn ClipRect(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn CenterX(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn CenterY(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for CalendarViewTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CalendarViewTemplateSettings;{56c71483-64e1-477c-8a0b-cb2f3334b9b0})"); +} +unsafe impl ::windows::core::Interface for CalendarViewTemplateSettings { + type Vtable = ICalendarViewTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56c71483_64e1_477c_8a0b_cb2f3334b9b0); +} +impl ::windows::core::RuntimeName for CalendarViewTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CalendarViewTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: CalendarViewTemplateSettings) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&CalendarViewTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &CalendarViewTemplateSettings) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CalendarViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CalendarViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: CalendarViewTemplateSettings) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&CalendarViewTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &CalendarViewTemplateSettings) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CalendarViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CalendarViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: CalendarViewTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&CalendarViewTemplateSettings> for super::super::DependencyObject { + fn from(value: &CalendarViewTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CalendarViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CalendarViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for CalendarViewTemplateSettings {} +unsafe impl ::core::marker::Sync for CalendarViewTemplateSettings {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct CarouselPanel(pub ::windows::core::IInspectable); +impl CarouselPanel { + pub fn CanVerticallyScroll(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetCanVerticallyScroll(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn CanHorizontallyScroll(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetCanHorizontallyScroll(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExtentWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExtentHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ViewportWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ViewportHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ScrollOwner(&self) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn SetScrollOwner<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn LineUp(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn LineDown(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn LineLeft(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn LineRight(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn PageUp(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn PageDown(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn PageLeft(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn PageRight(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn MouseWheelUp(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn MouseWheelDown(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn MouseWheelLeft(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn MouseWheelRight(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetHorizontalOffset(&self, offset: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), offset).ok() } } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } + pub fn SetVerticalOffset(&self, offset: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), offset).ok() } } #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn MakeVisible<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, visual: Param0, rectangle: Param1) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), visual.into_param().abi(), rectangle.into_param().abi(), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation_Collections")] + pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) } } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: f32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) } } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn new() -> ::windows::core::Result { + Self::ICarouselPanelFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn ICarouselPanelFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for CarouselPanel { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CarouselPanel;{deab78b2-373b-4151-8785-e544d0d9362b})"); +} +unsafe impl ::windows::core::Interface for CarouselPanel { + type Vtable = ICarouselPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdeab78b2_373b_4151_8785_e544d0d9362b); +} +impl ::windows::core::RuntimeName for CarouselPanel { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CarouselPanel"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: CarouselPanel) -> Self { + value.0 .0 } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&CarouselPanel> for ::windows::core::IUnknown { + fn from(value: &CarouselPanel) -> Self { + value.0 .0.clone() } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn ContentTemplateRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: CarouselPanel) -> Self { + value.0 } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&CarouselPanel> for ::windows::core::IInspectable { + fn from(value: &CarouselPanel) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::TryFrom for IScrollSnapPointsInfo { + type Error = ::windows::core::Error; + fn try_from(value: CarouselPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::TryFrom<&CarouselPanel> for IScrollSnapPointsInfo { + type Error = ::windows::core::Error; + fn try_from(value: &CarouselPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for &CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: CarouselPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&CarouselPanel> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &CarouselPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: CarouselPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&CarouselPanel> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &CarouselPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::VirtualizingPanel { + fn from(value: CarouselPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&CarouselPanel> for super::VirtualizingPanel { + fn from(value: &CarouselPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::VirtualizingPanel> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::VirtualizingPanel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::VirtualizingPanel> for &CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::VirtualizingPanel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Panel { + fn from(value: CarouselPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&CarouselPanel> for super::Panel { + fn from(value: &CarouselPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: CarouselPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&CarouselPanel> for super::super::FrameworkElement { + fn from(value: &CarouselPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: CarouselPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&CarouselPanel> for super::super::UIElement { + fn from(value: &CarouselPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: CarouselPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&CarouselPanel> for super::super::DependencyObject { + fn from(value: &CarouselPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CarouselPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for CarouselPanel {} +unsafe impl ::core::marker::Sync for CarouselPanel {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ColorPickerSlider(pub ::windows::core::IInspectable); +impl ColorPickerSlider { + pub fn ColorChannel(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::ColorPickerHsvChannel = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetColorChannel(&self, value: super::ColorPickerHsvChannel) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn ColorChannelProperty() -> ::windows::core::Result { + Self::IColorPickerSliderStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn new() -> ::windows::core::Result { + Self::IColorPickerSliderFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IColorPickerSliderStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + pub fn IColorPickerSliderFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ColorPickerSlider { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ColorPickerSlider;{94394d83-e0df-4c5f-bbcd-8155f4020440})"); +} +unsafe impl ::windows::core::Interface for ColorPickerSlider { + type Vtable = IColorPickerSlider_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94394d83_e0df_4c5f_bbcd_8155f4020440); +} +impl ::windows::core::RuntimeName for ColorPickerSlider { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ColorPickerSlider"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ColorPickerSlider) -> Self { + value.0 .0 } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ColorPickerSlider> for ::windows::core::IUnknown { + fn from(value: &ColorPickerSlider) -> Self { + value.0 .0.clone() } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ColorPickerSlider) -> Self { + value.0 } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ColorPickerSlider> for ::windows::core::IInspectable { + fn from(value: &ColorPickerSlider) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: ColorPickerSlider) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ColorPickerSlider> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &ColorPickerSlider) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: ColorPickerSlider) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ColorPickerSlider> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &ColorPickerSlider) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Slider { + fn from(value: ColorPickerSlider) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&ColorPickerSlider> for super::Slider { + fn from(value: &ColorPickerSlider) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Slider> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::Slider> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Slider> for &ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::Slider> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for RangeBase { + fn from(value: ColorPickerSlider) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ColorPickerSlider> for RangeBase { + fn from(value: &ColorPickerSlider) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBase> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, RangeBase> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBase> for &ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, RangeBase> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Control { + fn from(value: ColorPickerSlider) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ColorPickerSlider> for super::Control { + fn from(value: &ColorPickerSlider) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: ColorPickerSlider) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ColorPickerSlider> for super::super::FrameworkElement { + fn from(value: &ColorPickerSlider) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: ColorPickerSlider) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&ColorPickerSlider> for super::super::UIElement { + fn from(value: &ColorPickerSlider) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ColorPickerSlider) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&ColorPickerSlider> for super::super::DependencyObject { + fn from(value: &ColorPickerSlider) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ColorPickerSlider { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ColorPickerSlider {} +unsafe impl ::core::marker::Sync for ColorPickerSlider {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ColorSpectrum(pub ::windows::core::IInspectable); +impl ColorSpectrum { + pub fn Color(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::Color = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetColor<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Color>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation_Numerics")] + pub fn HsvColor(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::Numerics::Vector4 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation_Numerics")] + pub fn SetHsvColor<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector4>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn MinHue(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetMinHue(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn MaxHue(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetMaxHue(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn MinSaturation(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetMinSaturation(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn MaxSaturation(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } + pub fn SetMaxSaturation(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn MinValue(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetMinValue(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn MaxValue(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetMaxValue(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Shape(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::ColorSpectrumShape = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetShape(&self, value: super::ColorSpectrumShape) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Components(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::ColorSpectrumComponents = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetComponents(&self, value: super::ColorSpectrumComponents) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn ColorChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "Foundation")] + pub fn RemoveColorChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } + pub fn ColorProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn HsvColorProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } + pub fn MinHueProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn MaxHueProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } + pub fn MinSaturationProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn MaxSaturationProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } + pub fn MinValueProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } + pub fn MaxValueProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn ShapeProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn ComponentsProperty() -> ::windows::core::Result { + Self::IColorSpectrumStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn new() -> ::windows::core::Result { + Self::IColorSpectrumFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn IColorSpectrumStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn IColorSpectrumFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for ColorSpectrum { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ColorSpectrum;{ce46f271-f509-4f98-8288-e4942fb385df})"); +} +unsafe impl ::windows::core::Interface for ColorSpectrum { + type Vtable = IColorSpectrum_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce46f271_f509_4f98_8288_e4942fb385df); +} +impl ::windows::core::RuntimeName for ColorSpectrum { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ColorSpectrum"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ColorSpectrum) -> Self { + value.0 .0 } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&ColorSpectrum> for ::windows::core::IUnknown { + fn from(value: &ColorSpectrum) -> Self { + value.0 .0.clone() } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ColorSpectrum) -> Self { + value.0 } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ColorSpectrum> for ::windows::core::IInspectable { + fn from(value: &ColorSpectrum) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: ColorSpectrum) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ColorSpectrum> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &ColorSpectrum) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: ColorSpectrum) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ColorSpectrum> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &ColorSpectrum) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for super::Control { + fn from(value: ColorSpectrum) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } +} +impl ::core::convert::From<&ColorSpectrum> for super::Control { + fn from(value: &ColorSpectrum) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: ColorSpectrum) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ColorSpectrum> for super::super::FrameworkElement { + fn from(value: &ColorSpectrum) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: ColorSpectrum) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ColorSpectrum> for super::super::UIElement { + fn from(value: &ColorSpectrum) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ColorSpectrum) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ColorSpectrum> for super::super::DependencyObject { + fn from(value: &ColorSpectrum) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ColorSpectrum { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ColorSpectrum {} +unsafe impl ::core::marker::Sync for ColorSpectrum {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ComboBoxTemplateSettings(pub ::windows::core::IInspectable); +impl ComboBoxTemplateSettings { + pub fn DropDownOpenedHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn DropDownClosedHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn DropDownOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectedItemDirection(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: AnimationDirection = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn DropDownContentMinWidth(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ComboBoxTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ComboBoxTemplateSettings;{83285c4e-17f6-4aa3-b61b-e87c718604ea})"); +} +unsafe impl ::windows::core::Interface for ComboBoxTemplateSettings { + type Vtable = IComboBoxTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x83285c4e_17f6_4aa3_b61b_e87c718604ea); +} +impl ::windows::core::RuntimeName for ComboBoxTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ComboBoxTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ComboBoxTemplateSettings) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ComboBoxTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &ComboBoxTemplateSettings) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ComboBoxTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ComboBoxTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ComboBoxTemplateSettings) -> Self { + value.0 } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&ComboBoxTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &ComboBoxTemplateSettings) -> Self { + value.0.clone() } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ComboBoxTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ComboBoxTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ComboBoxTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ComboBoxTemplateSettings> for super::super::DependencyObject { + fn from(value: &ComboBoxTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ComboBoxTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ComboBoxTemplateSettings {} +unsafe impl ::core::marker::Sync for ComboBoxTemplateSettings {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct CommandBarFlyoutCommandBar(pub ::windows::core::IInspectable); +impl CommandBarFlyoutCommandBar { + pub fn FlyoutTemplateSettings(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn new() -> ::windows::core::Result { + Self::ICommandBarFlyoutCommandBarFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IButtonBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn ICommandBarFlyoutCommandBarFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for ButtonBase { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ButtonBase;{fa002c1a-494e-46cf-91d4-e14a8d798674})"); +unsafe impl ::windows::core::RuntimeType for CommandBarFlyoutCommandBar { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBar;{14146e7c-38c4-55c4-b706-ce18f6061e7e})"); } -unsafe impl ::windows::core::Interface for ButtonBase { - type Vtable = IButtonBase_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798674); +unsafe impl ::windows::core::Interface for CommandBarFlyoutCommandBar { + type Vtable = ICommandBarFlyoutCommandBar_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14146e7c_38c4_55c4_b706_ce18f6061e7e); } -impl ::windows::core::RuntimeName for ButtonBase { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ButtonBase"; +impl ::windows::core::RuntimeName for CommandBarFlyoutCommandBar { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBar"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ButtonBase) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: CommandBarFlyoutCommandBar) -> Self { value.0 .0 } } -impl ::core::convert::From<&ButtonBase> for ::windows::core::IUnknown { - fn from(value: &ButtonBase) -> Self { +impl ::core::convert::From<&CommandBarFlyoutCommandBar> for ::windows::core::IUnknown { + fn from(value: &CommandBarFlyoutCommandBar) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ButtonBase) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: CommandBarFlyoutCommandBar) -> Self { value.0 } } -impl ::core::convert::From<&ButtonBase> for ::windows::core::IInspectable { - fn from(value: &ButtonBase) -> Self { +impl ::core::convert::From<&CommandBarFlyoutCommandBar> for ::windows::core::IInspectable { + fn from(value: &CommandBarFlyoutCommandBar) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { type Error = ::windows::core::Error; - fn try_from(value: ButtonBase) -> ::windows::core::Result { + fn try_from(value: CommandBarFlyoutCommandBar) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ButtonBase> for super::super::super::Composition::IAnimationObject { +impl ::core::convert::TryFrom<&CommandBarFlyoutCommandBar> for super::super::super::Composition::IAnimationObject { type Error = ::windows::core::Error; - fn try_from(value: &ButtonBase) -> ::windows::core::Result { + fn try_from(value: &CommandBarFlyoutCommandBar) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { type Error = ::windows::core::Error; - fn try_from(value: ButtonBase) -> ::windows::core::Result { + fn try_from(value: CommandBarFlyoutCommandBar) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ButtonBase> for super::super::super::Composition::IVisualElement { +impl ::core::convert::TryFrom<&CommandBarFlyoutCommandBar> for super::super::super::Composition::IVisualElement { type Error = ::windows::core::Error; - fn try_from(value: &ButtonBase) -> ::windows::core::Result { + fn try_from(value: &CommandBarFlyoutCommandBar) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for super::ContentControl { - fn from(value: ButtonBase) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ButtonBase> for super::ContentControl { - fn from(value: &ButtonBase) -> Self { +impl ::core::convert::From for super::CommandBar { + fn from(value: CommandBarFlyoutCommandBar) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::CommandBar { + fn from(value: &CommandBarFlyoutCommandBar) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::CommandBar> for CommandBarFlyoutCommandBar { + fn into_param(self) -> ::windows::core::Param<'a, super::CommandBar> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::CommandBar> for &CommandBarFlyoutCommandBar { + fn into_param(self) -> ::windows::core::Param<'a, super::CommandBar> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::AppBar { + fn from(value: CommandBarFlyoutCommandBar) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::AppBar { + fn from(value: &CommandBarFlyoutCommandBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::AppBar> for CommandBarFlyoutCommandBar { + fn into_param(self) -> ::windows::core::Param<'a, super::AppBar> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::AppBar> for &CommandBarFlyoutCommandBar { + fn into_param(self) -> ::windows::core::Param<'a, super::AppBar> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::ContentControl { + fn from(value: CommandBarFlyoutCommandBar) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::ContentControl { + fn from(value: &CommandBarFlyoutCommandBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::Control { - fn from(value: ButtonBase) -> Self { +impl ::core::convert::From for super::Control { + fn from(value: CommandBarFlyoutCommandBar) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ButtonBase> for super::Control { - fn from(value: &ButtonBase) -> Self { +impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::Control { + fn from(value: &CommandBarFlyoutCommandBar) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::Control> for ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::Control> for CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::Control> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::Control> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ButtonBase) -> Self { +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: CommandBarFlyoutCommandBar) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ButtonBase> for super::super::FrameworkElement { - fn from(value: &ButtonBase) -> Self { +impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::super::FrameworkElement { + fn from(value: &CommandBarFlyoutCommandBar) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::UIElement { - fn from(value: ButtonBase) -> Self { +impl ::core::convert::From for super::super::UIElement { + fn from(value: CommandBarFlyoutCommandBar) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ButtonBase> for super::super::UIElement { - fn from(value: &ButtonBase) -> Self { +impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::super::UIElement { + fn from(value: &CommandBarFlyoutCommandBar) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ButtonBase) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: CommandBarFlyoutCommandBar) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&ButtonBase> for super::super::DependencyObject { - fn from(value: &ButtonBase) -> Self { +impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::super::DependencyObject { + fn from(value: &CommandBarFlyoutCommandBar) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ButtonBase { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CommandBarFlyoutCommandBar { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for ButtonBase {} -unsafe impl ::core::marker::Sync for ButtonBase {} +unsafe impl ::core::marker::Send for CommandBarFlyoutCommandBar {} +unsafe impl ::core::marker::Sync for CommandBarFlyoutCommandBar {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct CalendarPanel(pub ::windows::core::IInspectable); -impl CalendarPanel { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; +pub struct CommandBarFlyoutCommandBarTemplateSettings(pub ::windows::core::IInspectable); +impl CommandBarFlyoutCommandBarTemplateSettings { + pub fn OpenAnimationStartPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OpenAnimationEndPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn CloseAnimationEndPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn CurrentWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandedWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WidthExpansionDelta(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WidthExpansionAnimationStartPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WidthExpansionAnimationEndPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WidthExpansionMoreButtonAnimationStartPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn WidthExpansionMoreButtonAnimationEndPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandUpOverflowVerticalPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandDownOverflowVerticalPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandUpAnimationStartPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandUpAnimationEndPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandUpAnimationHoldPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandDownAnimationStartPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandDownAnimationEndPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExpandDownAnimationHoldPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ContentClipRect(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn OverflowContentClipRect(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for CommandBarFlyoutCommandBarTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBarTemplateSettings;{47642c44-26ff-5d14-9cfc-77dc64f3a447})"); +} +unsafe impl ::windows::core::Interface for CommandBarFlyoutCommandBarTemplateSettings { + type Vtable = ICommandBarFlyoutCommandBarTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47642c44_26ff_5d14_9cfc_77dc64f3a447); +} +impl ::windows::core::RuntimeName for CommandBarFlyoutCommandBarTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBarTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: CommandBarFlyoutCommandBarTemplateSettings) -> Self { + value.0 .0 } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&CommandBarFlyoutCommandBarTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &CommandBarFlyoutCommandBarTemplateSettings) -> Self { + value.0 .0.clone() } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CommandBarFlyoutCommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CommandBarFlyoutCommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: CommandBarFlyoutCommandBarTemplateSettings) -> Self { + value.0 } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&CommandBarFlyoutCommandBarTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &CommandBarFlyoutCommandBarTemplateSettings) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CommandBarFlyoutCommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CommandBarFlyoutCommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: CommandBarFlyoutCommandBarTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&CommandBarFlyoutCommandBarTemplateSettings> for super::super::DependencyObject { + fn from(value: &CommandBarFlyoutCommandBarTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CommandBarFlyoutCommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CommandBarFlyoutCommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for CommandBarFlyoutCommandBarTemplateSettings {} +unsafe impl ::core::marker::Sync for CommandBarFlyoutCommandBarTemplateSettings {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct CommandBarTemplateSettings(pub ::windows::core::IInspectable); +impl CommandBarTemplateSettings { + pub fn ContentHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverflowContentClipRect(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverflowContentMinWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverflowContentMaxHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: f64 = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverflowContentHorizontalOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverflowContentHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn NegativeOverflowContentHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverflowContentMaxWidth(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn EffectiveOverflowButtonVisibility(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverflowContentCompactYTranslation(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverflowContentMinimalYTranslation(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverflowContentHiddenYTranslation(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for CommandBarTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CommandBarTemplateSettings;{61c8f92c-05aa-414a-a2ae-482c5a46c08e})"); +} +unsafe impl ::windows::core::Interface for CommandBarTemplateSettings { + type Vtable = ICommandBarTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61c8f92c_05aa_414a_a2ae_482c5a46c08e); +} +impl ::windows::core::RuntimeName for CommandBarTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CommandBarTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: CommandBarTemplateSettings) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&CommandBarTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &CommandBarTemplateSettings) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: CommandBarTemplateSettings) -> Self { + value.0 } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&CommandBarTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &CommandBarTemplateSettings) -> Self { + value.0.clone() } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: CommandBarTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&CommandBarTemplateSettings> for super::super::DependencyObject { + fn from(value: &CommandBarTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CommandBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } +} +unsafe impl ::core::marker::Send for CommandBarTemplateSettings {} +unsafe impl ::core::marker::Sync for CommandBarTemplateSettings {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct ComponentResourceLocation(pub i32); +impl ComponentResourceLocation { + pub const Application: ComponentResourceLocation = ComponentResourceLocation(0i32); + pub const Nested: ComponentResourceLocation = ComponentResourceLocation(1i32); +} +impl ::core::convert::From for ComponentResourceLocation { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::windows::core::Abi for ComponentResourceLocation { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for ComponentResourceLocation { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation;i4)"); +} +impl ::windows::core::DefaultType for ComponentResourceLocation { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct DragCompletedEventArgs(pub ::windows::core::IInspectable); +impl DragCompletedEventArgs { + pub fn HorizontalChange(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalChange(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Canceled(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalchange: f64, verticalchange: f64, canceled: bool) -> ::windows::core::Result { + Self::IDragCompletedEventArgsFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), horizontalchange, verticalchange, canceled, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn IDragCompletedEventArgsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for DragCompletedEventArgs { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.DragCompletedEventArgs;{b04f29a1-bd16-48f6-a511-9c2763641331})"); +} +unsafe impl ::windows::core::Interface for DragCompletedEventArgs { + type Vtable = IDragCompletedEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb04f29a1_bd16_48f6_a511_9c2763641331); +} +impl ::windows::core::RuntimeName for DragCompletedEventArgs { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.DragCompletedEventArgs"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: DragCompletedEventArgs) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&DragCompletedEventArgs> for ::windows::core::IUnknown { + fn from(value: &DragCompletedEventArgs) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DragCompletedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DragCompletedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: DragCompletedEventArgs) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&DragCompletedEventArgs> for ::windows::core::IInspectable { + fn from(value: &DragCompletedEventArgs) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DragCompletedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DragCompletedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::RoutedEventArgs { + fn from(value: DragCompletedEventArgs) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&DragCompletedEventArgs> for super::super::RoutedEventArgs { + fn from(value: &DragCompletedEventArgs) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for DragCompletedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &DragCompletedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for DragCompletedEventArgs {} +unsafe impl ::core::marker::Sync for DragCompletedEventArgs {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct DragCompletedEventHandler(::windows::core::IUnknown); +impl DragCompletedEventHandler { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + let com = DragCompletedEventHandler_box:: { + vtable: &DragCompletedEventHandler_box::::VTABLE, + count: ::windows::core::RefCount::new(1), + invoke, + }; + unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, DragCompletedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) +} +unsafe impl ::windows::core::RuntimeType for DragCompletedEventHandler { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({36b28888-19ac-4b4e-9137-a6cf2b023883})"); +} +unsafe impl ::windows::core::Interface for DragCompletedEventHandler { + type Vtable = DragCompletedEventHandler_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36b28888_19ac_4b4e_9137_a6cf2b023883); +} +#[repr(C)] +#[doc(hidden)] +pub struct DragCompletedEventHandler_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(C)] +struct DragCompletedEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { + vtable: *const DragCompletedEventHandler_abi, + invoke: F, + count: ::windows::core::RefCount, +} +impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragCompletedEventHandler_box { + const VTABLE: DragCompletedEventHandler_abi = DragCompletedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); + unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { + &mut (*this).vtable as *mut _ as _ + } else { + ::core::ptr::null_mut() + }; + if (*interface).is_null() { + ::windows::core::HRESULT(0x8000_4002) + } else { + (*this).count.add_ref(); + ::windows::core::HRESULT(0) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + (*this).count.add_ref() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + let remaining = (*this).count.release(); + if remaining == 0 { + ::windows::core::alloc::boxed::Box::from_raw(this); } + remaining } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + ((*this).invoke)( + &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), + &*(&e as *const ::Abi as *const ::DefaultType), + ) + .into() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct DragDeltaEventArgs(pub ::windows::core::IInspectable); +impl DragDeltaEventArgs { + pub fn HorizontalChange(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalChange(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalchange: f64, verticalchange: f64) -> ::windows::core::Result { + Self::IDragDeltaEventArgsFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), horizontalchange, verticalchange, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn IDragDeltaEventArgsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for DragDeltaEventArgs { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.DragDeltaEventArgs;{2c2dd73c-2806-49fc-aae9-6d792b572b6a})"); +} +unsafe impl ::windows::core::Interface for DragDeltaEventArgs { + type Vtable = IDragDeltaEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c2dd73c_2806_49fc_aae9_6d792b572b6a); +} +impl ::windows::core::RuntimeName for DragDeltaEventArgs { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.DragDeltaEventArgs"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: DragDeltaEventArgs) -> Self { + value.0 .0 } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&DragDeltaEventArgs> for ::windows::core::IUnknown { + fn from(value: &DragDeltaEventArgs) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DragDeltaEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DragDeltaEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: DragDeltaEventArgs) -> Self { + value.0 } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&DragDeltaEventArgs> for ::windows::core::IInspectable { + fn from(value: &DragDeltaEventArgs) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DragDeltaEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DragDeltaEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::RoutedEventArgs { + fn from(value: DragDeltaEventArgs) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&DragDeltaEventArgs> for super::super::RoutedEventArgs { + fn from(value: &DragDeltaEventArgs) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for DragDeltaEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &DragDeltaEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::core::marker::Send for DragDeltaEventArgs {} +unsafe impl ::core::marker::Sync for DragDeltaEventArgs {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct DragDeltaEventHandler(::windows::core::IUnknown); +impl DragDeltaEventHandler { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + let com = DragDeltaEventHandler_box:: { + vtable: &DragDeltaEventHandler_box::::VTABLE, + count: ::windows::core::RefCount::new(1), + invoke, + }; + unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, DragDeltaEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } + } +} +unsafe impl ::windows::core::RuntimeType for DragDeltaEventHandler { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({4ac24f9f-ac28-49e9-9189-dccffeb66472})"); +} +unsafe impl ::windows::core::Interface for DragDeltaEventHandler { + type Vtable = DragDeltaEventHandler_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ac24f9f_ac28_49e9_9189_dccffeb66472); +} +#[repr(C)] +#[doc(hidden)] +pub struct DragDeltaEventHandler_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(C)] +struct DragDeltaEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { + vtable: *const DragDeltaEventHandler_abi, + invoke: F, + count: ::windows::core::RefCount, +} +impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragDeltaEventHandler_box { + const VTABLE: DragDeltaEventHandler_abi = DragDeltaEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); + unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { + &mut (*this).vtable as *mut _ as _ + } else { + ::core::ptr::null_mut() + }; + if (*interface).is_null() { + ::windows::core::HRESULT(0x8000_4002) + } else { + (*this).count.add_ref(); + ::windows::core::HRESULT(0) } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + (*this).count.add_ref() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + let remaining = (*this).count.release(); + if remaining == 0 { + ::windows::core::alloc::boxed::Box::from_raw(this); } + remaining } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + ((*this).invoke)( + &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), + &*(&e as *const ::Abi as *const ::DefaultType), + ) + .into() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct DragStartedEventArgs(pub ::windows::core::IInspectable); +impl DragStartedEventArgs { + pub fn HorizontalOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } + pub fn CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontaloffset: f64, verticaloffset: f64) -> ::windows::core::Result { + Self::IDragStartedEventArgsFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), horizontaloffset, verticaloffset, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } + pub fn IDragStartedEventArgsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for DragStartedEventArgs { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.DragStartedEventArgs;{9f915dd0-a124-4366-bd85-2408214aeed4})"); +} +unsafe impl ::windows::core::Interface for DragStartedEventArgs { + type Vtable = IDragStartedEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9f915dd0_a124_4366_bd85_2408214aeed4); +} +impl ::windows::core::RuntimeName for DragStartedEventArgs { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.DragStartedEventArgs"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: DragStartedEventArgs) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&DragStartedEventArgs> for ::windows::core::IUnknown { + fn from(value: &DragStartedEventArgs) -> Self { + value.0 .0.clone() } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DragStartedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DragStartedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: DragStartedEventArgs) -> Self { + value.0 } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&DragStartedEventArgs> for ::windows::core::IInspectable { + fn from(value: &DragStartedEventArgs) -> Self { + value.0.clone() } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DragStartedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DragStartedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From for super::super::RoutedEventArgs { + fn from(value: DragStartedEventArgs) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&DragStartedEventArgs> for super::super::RoutedEventArgs { + fn from(value: &DragStartedEventArgs) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for DragStartedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) +} +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &DragStartedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for DragStartedEventArgs {} +unsafe impl ::core::marker::Sync for DragStartedEventArgs {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct DragStartedEventHandler(::windows::core::IUnknown); +impl DragStartedEventHandler { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + let com = DragStartedEventHandler_box:: { + vtable: &DragStartedEventHandler_box::::VTABLE, + count: ::windows::core::RefCount::new(1), + invoke, + }; + unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } + } + pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, DragStartedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } + } +} +unsafe impl ::windows::core::RuntimeType for DragStartedEventHandler { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({d2eea48a-c65a-495d-a2f1-72c66989142d})"); +} +unsafe impl ::windows::core::Interface for DragStartedEventHandler { + type Vtable = DragStartedEventHandler_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2eea48a_c65a_495d_a2f1_72c66989142d); +} +#[repr(C)] +#[doc(hidden)] +pub struct DragStartedEventHandler_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(C)] +struct DragStartedEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { + vtable: *const DragStartedEventHandler_abi, + invoke: F, + count: ::windows::core::RefCount, +} +impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragStartedEventHandler_box { + const VTABLE: DragStartedEventHandler_abi = DragStartedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); + unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { + &mut (*this).vtable as *mut _ as _ + } else { + ::core::ptr::null_mut() + }; + if (*interface).is_null() { + ::windows::core::HRESULT(0x8000_4002) + } else { + (*this).count.add_ref(); + ::windows::core::HRESULT(0) + } + } + unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + (*this).count.add_ref() + } + unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + let remaining = (*this).count.release(); + if remaining == 0 { + ::windows::core::alloc::boxed::Box::from_raw(this); } + remaining + } + unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + ((*this).invoke)( + &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), + &*(&e as *const ::Abi as *const ::DefaultType), + ) + .into() + } +} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct EdgeTransitionLocation(pub i32); +impl EdgeTransitionLocation { + pub const Left: EdgeTransitionLocation = EdgeTransitionLocation(0i32); + pub const Top: EdgeTransitionLocation = EdgeTransitionLocation(1i32); + pub const Right: EdgeTransitionLocation = EdgeTransitionLocation(2i32); + pub const Bottom: EdgeTransitionLocation = EdgeTransitionLocation(3i32); +} +impl ::core::convert::From for EdgeTransitionLocation { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::windows::core::Abi for EdgeTransitionLocation { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for EdgeTransitionLocation { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.EdgeTransitionLocation;i4)"); +} +impl ::windows::core::DefaultType for EdgeTransitionLocation { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct FlyoutBase(pub ::windows::core::IInspectable); +impl FlyoutBase { + pub fn Placement(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: FlyoutPlacementMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetPlacement(&self, value: FlyoutPlacementMode) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn Opened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveOpened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Closed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn RemoveClosed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Opening<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn RemoveOpening<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn ShowAt<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(&self, placementtarget: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), placementtarget.into_param().abi()).ok() } + } + pub fn Hide(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this)).ok() } + } + pub fn PlacementProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn AttachedFlyoutProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn GetAttachedFlyout<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(element: Param0) -> ::windows::core::Result { + Self::IFlyoutBaseStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetAttachedFlyout<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>, Param1: ::windows::core::IntoParam<'a, FlyoutBase>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { + Self::IFlyoutBaseStatics(|this| unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), element.into_param().abi(), value.into_param().abi()).ok() }) } - pub fn IsItemsHost(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn ShowAttachedFlyout<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(flyoutowner: Param0) -> ::windows::core::Result<()> { + Self::IFlyoutBaseStatics(|this| unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), flyoutowner.into_param().abi()).ok() }) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ChildrenTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Target(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetChildrenTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn LightDismissOverlayMode(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::LightDismissOverlayMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetLightDismissOverlayMode(&self, value: super::LightDismissOverlayMode) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ElementSoundMode(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn Closing<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveClosing<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn AllowFocusOnInteractionProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics2(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn LightDismissOverlayModeProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics2(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn AllowFocusWhenDisabledProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics2(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } + pub fn ElementSoundModeProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics2(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OverlayInputPassThroughElement(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetOverlayInputPassThroughElement<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn OverlayInputPassThroughElementProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics3(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Input")] + pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ShowMode(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: FlyoutShowMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetShowMode(&self, value: FlyoutShowMode) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn InputDevicePrefersPrimaryCommands(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AreOpenCloseAnimationsEnabled(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetAreOpenCloseAnimationsEnabled(&self, value: bool) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsOpen(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn ShowAt2<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, FlyoutShowOptions>>(&self, placementtarget: Param0, showoptions: Param1) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), placementtarget.into_param().abi(), showoptions.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn TargetProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics5(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn ShowModeProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics5(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn InputDevicePrefersPrimaryCommandsProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics5(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn AreOpenCloseAnimationsEnabledProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics5(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } + pub fn IsOpenProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics5(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ShouldConstrainToRootBounds(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetShouldConstrainToRootBounds(&self, value: bool) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsConstrainedToRootBounds(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn XamlRoot(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn ShouldConstrainToRootBoundsProperty() -> ::windows::core::Result { + Self::IFlyoutBaseStatics6(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } + pub fn IFlyoutBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IFlyoutBaseStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } + pub fn IFlyoutBaseStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IFlyoutBaseStatics5 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } + pub fn IFlyoutBaseStatics6 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for FlyoutBase { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.FlyoutBase;{723eea0b-d12e-430d-a9f0-9bb32bbf9913})"); +} +unsafe impl ::windows::core::Interface for FlyoutBase { + type Vtable = IFlyoutBase_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x723eea0b_d12e_430d_a9f0_9bb32bbf9913); +} +impl ::windows::core::RuntimeName for FlyoutBase { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.FlyoutBase"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: FlyoutBase) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&FlyoutBase> for ::windows::core::IUnknown { + fn from(value: &FlyoutBase) -> Self { + value.0 .0.clone() } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: FlyoutBase) -> Self { + value.0 } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&FlyoutBase> for ::windows::core::IInspectable { + fn from(value: &FlyoutBase) -> Self { + value.0.clone() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: FlyoutBase) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&FlyoutBase> for super::super::DependencyObject { + fn from(value: &FlyoutBase) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for FlyoutBase {} +unsafe impl ::core::marker::Sync for FlyoutBase {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct FlyoutBaseClosingEventArgs(pub ::windows::core::IInspectable); +impl FlyoutBaseClosingEventArgs { + pub fn Cancel(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetCancel(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +unsafe impl ::windows::core::RuntimeType for FlyoutBaseClosingEventArgs { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.FlyoutBaseClosingEventArgs;{d075852d-b09a-4fd1-b005-db2ba01206fb})"); +} +unsafe impl ::windows::core::Interface for FlyoutBaseClosingEventArgs { + type Vtable = IFlyoutBaseClosingEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd075852d_b09a_4fd1_b005_db2ba01206fb); +} +impl ::windows::core::RuntimeName for FlyoutBaseClosingEventArgs { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.FlyoutBaseClosingEventArgs"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: FlyoutBaseClosingEventArgs) -> Self { + value.0 .0 } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlyoutBaseClosingEventArgs> for ::windows::core::IUnknown { + fn from(value: &FlyoutBaseClosingEventArgs) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlyoutBaseClosingEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlyoutBaseClosingEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: FlyoutBaseClosingEventArgs) -> Self { + value.0 } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&FlyoutBaseClosingEventArgs> for ::windows::core::IInspectable { + fn from(value: &FlyoutBaseClosingEventArgs) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlyoutBaseClosingEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlyoutBaseClosingEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::core::marker::Send for FlyoutBaseClosingEventArgs {} +unsafe impl ::core::marker::Sync for FlyoutBaseClosingEventArgs {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct FlyoutPlacementMode(pub i32); +impl FlyoutPlacementMode { + pub const Top: FlyoutPlacementMode = FlyoutPlacementMode(0i32); + pub const Bottom: FlyoutPlacementMode = FlyoutPlacementMode(1i32); + pub const Left: FlyoutPlacementMode = FlyoutPlacementMode(2i32); + pub const Right: FlyoutPlacementMode = FlyoutPlacementMode(3i32); + pub const Full: FlyoutPlacementMode = FlyoutPlacementMode(4i32); + pub const TopEdgeAlignedLeft: FlyoutPlacementMode = FlyoutPlacementMode(5i32); + pub const TopEdgeAlignedRight: FlyoutPlacementMode = FlyoutPlacementMode(6i32); + pub const BottomEdgeAlignedLeft: FlyoutPlacementMode = FlyoutPlacementMode(7i32); + pub const BottomEdgeAlignedRight: FlyoutPlacementMode = FlyoutPlacementMode(8i32); + pub const LeftEdgeAlignedTop: FlyoutPlacementMode = FlyoutPlacementMode(9i32); + pub const LeftEdgeAlignedBottom: FlyoutPlacementMode = FlyoutPlacementMode(10i32); + pub const RightEdgeAlignedTop: FlyoutPlacementMode = FlyoutPlacementMode(11i32); + pub const RightEdgeAlignedBottom: FlyoutPlacementMode = FlyoutPlacementMode(12i32); + pub const Auto: FlyoutPlacementMode = FlyoutPlacementMode(13i32); +} +impl ::core::convert::From for FlyoutPlacementMode { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } +} +unsafe impl ::windows::core::Abi for FlyoutPlacementMode { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for FlyoutPlacementMode { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.FlyoutPlacementMode;i4)"); +} +impl ::windows::core::DefaultType for FlyoutPlacementMode { + type DefaultType = Self; +} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct FlyoutShowMode(pub i32); +impl FlyoutShowMode { + pub const Auto: FlyoutShowMode = FlyoutShowMode(0i32); + pub const Standard: FlyoutShowMode = FlyoutShowMode(1i32); + pub const Transient: FlyoutShowMode = FlyoutShowMode(2i32); + pub const TransientWithDismissOnPointerMoveAway: FlyoutShowMode = FlyoutShowMode(3i32); +} +impl ::core::convert::From for FlyoutShowMode { + fn from(value: i32) -> Self { + Self(value) } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::windows::core::Abi for FlyoutShowMode { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for FlyoutShowMode { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.FlyoutShowMode;i4)"); +} +impl ::windows::core::DefaultType for FlyoutShowMode { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct FlyoutShowOptions(pub ::windows::core::IInspectable); +impl FlyoutShowOptions { + #[cfg(feature = "Foundation")] + pub fn Position(&self) -> ::windows::core::Result> { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn SetPosition<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn ExclusionRect(&self) -> ::windows::core::Result> { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn SetExclusionRect<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ShowMode(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: FlyoutShowMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetShowMode(&self, value: FlyoutShowMode) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Placement(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: FlyoutPlacementMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetPlacement(&self, value: FlyoutPlacementMode) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } + pub fn new() -> ::windows::core::Result { + Self::IFlyoutShowOptionsFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IFlyoutShowOptionsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for FlyoutShowOptions { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.FlyoutShowOptions;{57d693ad-0c74-54dd-b110-1ee43fabadd9})"); +} +unsafe impl ::windows::core::Interface for FlyoutShowOptions { + type Vtable = IFlyoutShowOptions_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x57d693ad_0c74_54dd_b110_1ee43fabadd9); +} +impl ::windows::core::RuntimeName for FlyoutShowOptions { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.FlyoutShowOptions"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: FlyoutShowOptions) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&FlyoutShowOptions> for ::windows::core::IUnknown { + fn from(value: &FlyoutShowOptions) -> Self { + value.0 .0.clone() } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlyoutShowOptions { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlyoutShowOptions { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: FlyoutShowOptions) -> Self { + value.0 } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +} +impl ::core::convert::From<&FlyoutShowOptions> for ::windows::core::IInspectable { + fn from(value: &FlyoutShowOptions) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlyoutShowOptions { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlyoutShowOptions { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +unsafe impl ::core::marker::Send for FlyoutShowOptions {} +unsafe impl ::core::marker::Sync for FlyoutShowOptions {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct GeneratorDirection(pub i32); +impl GeneratorDirection { + pub const Forward: GeneratorDirection = GeneratorDirection(0i32); + pub const Backward: GeneratorDirection = GeneratorDirection(1i32); +} +impl ::core::convert::From for GeneratorDirection { + fn from(value: i32) -> Self { + Self(value) + } +} +unsafe impl ::windows::core::Abi for GeneratorDirection { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for GeneratorDirection { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.GeneratorDirection;i4)"); +} +impl ::windows::core::DefaultType for GeneratorDirection { + type DefaultType = Self; +} +#[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] +#[repr(C)] +pub struct GeneratorPosition { + pub Index: i32, + pub Offset: i32, +} +impl GeneratorPosition {} +impl ::core::default::Default for GeneratorPosition { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } +} +impl ::core::fmt::Debug for GeneratorPosition { + fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fmt.debug_struct("GeneratorPosition").field("Index", &self.Index).field("Offset", &self.Offset).finish() + } +} +impl ::core::cmp::PartialEq for GeneratorPosition { + fn eq(&self, other: &Self) -> bool { + self.Index == other.Index && self.Offset == other.Offset + } +} +impl ::core::cmp::Eq for GeneratorPosition {} +unsafe impl ::windows::core::Abi for GeneratorPosition { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for GeneratorPosition { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"struct(Windows.UI.Xaml.Controls.Primitives.GeneratorPosition;i4;i4)"); +} +impl ::windows::core::DefaultType for GeneratorPosition { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct GeneratorPositionHelper(pub ::windows::core::IInspectable); +impl GeneratorPositionHelper { + pub fn FromIndexAndOffset(index: i32, offset: i32) -> ::windows::core::Result { + Self::IGeneratorPositionHelperStatics(|this| unsafe { + let mut result__: GeneratorPosition = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), index, offset, &mut result__).from_abi::(result__) + }) + } + pub fn IGeneratorPositionHelperStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } +} +unsafe impl ::windows::core::RuntimeType for GeneratorPositionHelper { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.GeneratorPositionHelper;{cd40318d-7745-40d9-ab9d-abbda4a7ffea})"); +} +unsafe impl ::windows::core::Interface for GeneratorPositionHelper { + type Vtable = IGeneratorPositionHelper_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd40318d_7745_40d9_ab9d_abbda4a7ffea); +} +impl ::windows::core::RuntimeName for GeneratorPositionHelper { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.GeneratorPositionHelper"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: GeneratorPositionHelper) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&GeneratorPositionHelper> for ::windows::core::IUnknown { + fn from(value: &GeneratorPositionHelper) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GeneratorPositionHelper { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GeneratorPositionHelper { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) + } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: GeneratorPositionHelper) -> Self { + value.0 + } +} +impl ::core::convert::From<&GeneratorPositionHelper> for ::windows::core::IInspectable { + fn from(value: &GeneratorPositionHelper) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GeneratorPositionHelper { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GeneratorPositionHelper { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +unsafe impl ::core::marker::Send for GeneratorPositionHelper {} +unsafe impl ::core::marker::Sync for GeneratorPositionHelper {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct GridViewItemPresenter(pub ::windows::core::IInspectable); +impl GridViewItemPresenter { + pub fn SelectionCheckMarkVisualEnabled(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } + } + pub fn SetSelectionCheckMarkVisualEnabled(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckHintBrush(&self) -> ::windows::core::Result { + let this = self; + unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckHintBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckSelectingBrush(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckSelectingBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBrush(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn DragBackground(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetDragBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn DragForeground(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetDragForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn FocusBorderBrush(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetFocusBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn PlaceholderBackground(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetPlaceholderBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn PointerOverBackground(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetPointerOverBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedBackground(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedForeground(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedPointerOverBackground(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetBackgroundTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::BrushTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedPointerOverBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedPointerOverBorderBrush(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedPointerOverBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn SelectedBorderThickness(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::Thickness = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetSelectedBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn DisabledOpacity(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetDisabledOpacity(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn DragOpacity(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetDragOpacity(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } + } + pub fn ReorderHintOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetReorderHintOffset(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } } -} -unsafe impl ::windows::core::RuntimeType for CalendarPanel { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CalendarPanel;{fcd55a2d-02d3-4ee6-9a90-9df3ead00994})"); -} -unsafe impl ::windows::core::Interface for CalendarPanel { - type Vtable = ICalendarPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfcd55a2d_02d3_4ee6_9a90_9df3ead00994); -} -impl ::windows::core::RuntimeName for CalendarPanel { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CalendarPanel"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CalendarPanel) -> Self { - value.0 .0 + #[cfg(feature = "deprecated")] + pub fn GridViewItemPresenterHorizontalContentAlignment(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl ::core::convert::From<&CalendarPanel> for ::windows::core::IUnknown { - fn from(value: &CalendarPanel) -> Self { - value.0 .0.clone() + #[cfg(feature = "deprecated")] + pub fn SetGridViewItemPresenterHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value).ok() } } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) + #[cfg(feature = "deprecated")] + pub fn GridViewItemPresenterVerticalContentAlignment(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) + #[cfg(feature = "deprecated")] + pub fn SetGridViewItemPresenterVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), value).ok() } } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CalendarPanel) -> Self { - value.0 + #[cfg(feature = "deprecated")] + pub fn GridViewItemPresenterPadding(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: super::super::Thickness = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl ::core::convert::From<&CalendarPanel> for ::windows::core::IInspectable { - fn from(value: &CalendarPanel) -> Self { - value.0.clone() + #[cfg(feature = "deprecated")] + pub fn SetGridViewItemPresenterPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) + pub fn PointerOverBackgroundMargin(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: super::super::Thickness = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) + pub fn SetPointerOverBackgroundMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: CalendarPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) + pub fn ContentMargin(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: super::super::Thickness = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&CalendarPanel> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &CalendarPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) + pub fn SetContentMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) + pub fn SelectionCheckMarkVisualEnabledProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + pub fn CheckHintBrushProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: CalendarPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) + pub fn CheckSelectingBrushProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&CalendarPanel> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &CalendarPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) + pub fn CheckBrushProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) + pub fn DragBackgroundProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + pub fn DragForegroundProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl ::core::convert::From for super::Panel { - fn from(value: CalendarPanel) -> Self { - ::core::convert::Into::::into(&value) + pub fn FocusBorderBrushProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl ::core::convert::From<&CalendarPanel> for super::Panel { - fn from(value: &CalendarPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() + pub fn PlaceholderBackgroundProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + pub fn PointerOverBackgroundProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + pub fn SelectedBackgroundProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: CalendarPanel) -> Self { + pub fn SelectedForegroundProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn SelectedPointerOverBackgroundProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn SelectedPointerOverBorderBrushProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn SelectedBorderThicknessProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn DisabledOpacityProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn DragOpacityProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn ReorderHintOffsetProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + #[cfg(feature = "deprecated")] + pub fn GridViewItemPresenterHorizontalContentAlignmentProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + #[cfg(feature = "deprecated")] + pub fn GridViewItemPresenterVerticalContentAlignmentProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + #[cfg(feature = "deprecated")] + pub fn GridViewItemPresenterPaddingProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn PointerOverBackgroundMarginProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn ContentMarginProperty() -> ::windows::core::Result { + Self::IGridViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn new() -> ::windows::core::Result { + Self::IGridViewItemPresenterFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) + } + pub fn IGridViewItemPresenterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } + pub fn IGridViewItemPresenterFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } +} +unsafe impl ::windows::core::RuntimeType for GridViewItemPresenter { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.GridViewItemPresenter;{214f9010-56e2-4821-8a1c-2305709af94b})"); +} +unsafe impl ::windows::core::Interface for GridViewItemPresenter { + type Vtable = IGridViewItemPresenter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x214f9010_56e2_4821_8a1c_2305709af94b); +} +impl ::windows::core::RuntimeName for GridViewItemPresenter { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.GridViewItemPresenter"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: GridViewItemPresenter) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&GridViewItemPresenter> for ::windows::core::IUnknown { + fn from(value: &GridViewItemPresenter) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) + } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: GridViewItemPresenter) -> Self { + value.0 + } +} +impl ::core::convert::From<&GridViewItemPresenter> for ::windows::core::IInspectable { + fn from(value: &GridViewItemPresenter) -> Self { + value.0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: GridViewItemPresenter) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&GridViewItemPresenter> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &GridViewItemPresenter) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: GridViewItemPresenter) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&GridViewItemPresenter> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &GridViewItemPresenter) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) + } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for super::ContentPresenter { + fn from(value: GridViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&GridViewItemPresenter> for super::ContentPresenter { + fn from(value: &GridViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentPresenter> for GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentPresenter> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentPresenter> for &GridViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentPresenter> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: GridViewItemPresenter) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CalendarPanel> for super::super::FrameworkElement { - fn from(value: &CalendarPanel) -> Self { +impl ::core::convert::From<&GridViewItemPresenter> for super::super::FrameworkElement { + fn from(value: &GridViewItemPresenter) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for CalendarPanel { +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for GridViewItemPresenter { fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &CalendarPanel { +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &GridViewItemPresenter { fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::UIElement { - fn from(value: CalendarPanel) -> Self { +impl ::core::convert::From for super::super::UIElement { + fn from(value: GridViewItemPresenter) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CalendarPanel> for super::super::UIElement { - fn from(value: &CalendarPanel) -> Self { +impl ::core::convert::From<&GridViewItemPresenter> for super::super::UIElement { + fn from(value: &GridViewItemPresenter) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for CalendarPanel { +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for GridViewItemPresenter { fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &CalendarPanel { +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &GridViewItemPresenter { fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CalendarPanel) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: GridViewItemPresenter) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CalendarPanel> for super::super::DependencyObject { - fn from(value: &CalendarPanel) -> Self { +impl ::core::convert::From<&GridViewItemPresenter> for super::super::DependencyObject { + fn from(value: &GridViewItemPresenter) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CalendarPanel { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewItemPresenter { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CalendarPanel { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewItemPresenter { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for CalendarPanel {} -unsafe impl ::core::marker::Sync for CalendarPanel {} +unsafe impl ::core::marker::Send for GridViewItemPresenter {} +unsafe impl ::core::marker::Sync for GridViewItemPresenter {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct CalendarViewTemplateSettings(pub ::windows::core::IInspectable); -impl CalendarViewTemplateSettings { - pub fn MinViewWidth(&self) -> ::windows::core::Result { +pub struct GridViewItemTemplateSettings(pub ::windows::core::IInspectable); +impl GridViewItemTemplateSettings { + pub fn DragItemsCount(&self) -> ::windows::core::Result { let this = self; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HeaderText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn WeekDay1(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn WeekDay2(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn WeekDay3(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn WeekDay4(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn WeekDay5(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn WeekDay6(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn WeekDay7(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn HasMoreContentAfter(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasMoreContentBefore(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HasMoreViews(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ClipRect(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CenterX(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CenterY(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } } -unsafe impl ::windows::core::RuntimeType for CalendarViewTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CalendarViewTemplateSettings;{56c71483-64e1-477c-8a0b-cb2f3334b9b0})"); +unsafe impl ::windows::core::RuntimeType for GridViewItemTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.GridViewItemTemplateSettings;{9e30baaf-165d-4267-a45e-1a43a75706ac})"); } -unsafe impl ::windows::core::Interface for CalendarViewTemplateSettings { - type Vtable = ICalendarViewTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56c71483_64e1_477c_8a0b_cb2f3334b9b0); +unsafe impl ::windows::core::Interface for GridViewItemTemplateSettings { + type Vtable = IGridViewItemTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9e30baaf_165d_4267_a45e_1a43a75706ac); } -impl ::windows::core::RuntimeName for CalendarViewTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CalendarViewTemplateSettings"; +impl ::windows::core::RuntimeName for GridViewItemTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.GridViewItemTemplateSettings"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CalendarViewTemplateSettings) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: GridViewItemTemplateSettings) -> Self { value.0 .0 } } -impl ::core::convert::From<&CalendarViewTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &CalendarViewTemplateSettings) -> Self { +impl ::core::convert::From<&GridViewItemTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &GridViewItemTemplateSettings) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CalendarViewTemplateSettings { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewItemTemplateSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CalendarViewTemplateSettings { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewItemTemplateSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CalendarViewTemplateSettings) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: GridViewItemTemplateSettings) -> Self { value.0 } } -impl ::core::convert::From<&CalendarViewTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &CalendarViewTemplateSettings) -> Self { +impl ::core::convert::From<&GridViewItemTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &GridViewItemTemplateSettings) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CalendarViewTemplateSettings { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewItemTemplateSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CalendarViewTemplateSettings { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewItemTemplateSettings { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CalendarViewTemplateSettings) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: GridViewItemTemplateSettings) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&CalendarViewTemplateSettings> for super::super::DependencyObject { - fn from(value: &CalendarViewTemplateSettings) -> Self { +impl ::core::convert::From<&GridViewItemTemplateSettings> for super::super::DependencyObject { + fn from(value: &GridViewItemTemplateSettings) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CalendarViewTemplateSettings { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewItemTemplateSettings { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CalendarViewTemplateSettings { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewItemTemplateSettings { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for CalendarViewTemplateSettings {} -unsafe impl ::core::marker::Sync for CalendarViewTemplateSettings {} +unsafe impl ::core::marker::Send for GridViewItemTemplateSettings {} +unsafe impl ::core::marker::Sync for GridViewItemTemplateSettings {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] #[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct CarouselPanel(pub ::windows::core::IInspectable); -impl CarouselPanel { - pub fn CanVerticallyScroll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanVerticallyScroll(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CanHorizontallyScroll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanHorizontallyScroll(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ExtentWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExtentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ViewportWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ViewportHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn VerticalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +pub struct GroupHeaderPlacement(pub i32); +impl GroupHeaderPlacement { + pub const Top: GroupHeaderPlacement = GroupHeaderPlacement(0i32); + pub const Left: GroupHeaderPlacement = GroupHeaderPlacement(1i32); +} +impl ::core::convert::From for GroupHeaderPlacement { + fn from(value: i32) -> Self { + Self(value) } - pub fn ScrollOwner(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetScrollOwner<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn LineUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this)).ok() } - } - pub fn LineDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this)).ok() } - } - pub fn LineLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this)).ok() } - } - pub fn LineRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this)).ok() } - } - pub fn PageUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this)).ok() } - } - pub fn PageDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this)).ok() } - } - pub fn PageLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this)).ok() } - } - pub fn PageRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this)).ok() } - } - pub fn MouseWheelUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - pub fn MouseWheelDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this)).ok() } - } - pub fn MouseWheelLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this)).ok() } - } - pub fn MouseWheelRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this)).ok() } - } - pub fn SetHorizontalOffset(&self, offset: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), offset).ok() } - } - pub fn SetVerticalOffset(&self, offset: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), offset).ok() } - } - #[cfg(feature = "Foundation")] - pub fn MakeVisible<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, visual: Param0, rectangle: Param1) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), visual.into_param().abi(), rectangle.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) - } - } - pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) - } - } - pub fn new() -> ::windows::core::Result { - Self::ICarouselPanelFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsItemsHost(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ChildrenTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetChildrenTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ItemContainerGenerator(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AddInternalChild<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, child: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), child.into_param().abi()).ok() } - } - pub fn InsertInternalChild<'a, Param1: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, index: i32, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), index, child.into_param().abi()).ok() } - } - pub fn RemoveInternalChildRange(&self, index: i32, range: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), index, range).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::BrushTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ICarouselPanelFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for CarouselPanel { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CarouselPanel;{deab78b2-373b-4151-8785-e544d0d9362b})"); -} -unsafe impl ::windows::core::Interface for CarouselPanel { - type Vtable = ICarouselPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdeab78b2_373b_4151_8785_e544d0d9362b); -} -impl ::windows::core::RuntimeName for CarouselPanel { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CarouselPanel"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CarouselPanel) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&CarouselPanel> for ::windows::core::IUnknown { - fn from(value: &CarouselPanel) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CarouselPanel) -> Self { - value.0 - } -} -impl ::core::convert::From<&CarouselPanel> for ::windows::core::IInspectable { - fn from(value: &CarouselPanel) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::TryFrom for IScrollSnapPointsInfo { - type Error = ::windows::core::Error; - fn try_from(value: CarouselPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&CarouselPanel> for IScrollSnapPointsInfo { - type Error = ::windows::core::Error; - fn try_from(value: &CarouselPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for &CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: CarouselPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&CarouselPanel> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &CarouselPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: CarouselPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&CarouselPanel> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &CarouselPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::VirtualizingPanel { - fn from(value: CarouselPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CarouselPanel> for super::VirtualizingPanel { - fn from(value: &CarouselPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::VirtualizingPanel> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::VirtualizingPanel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::VirtualizingPanel> for &CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::VirtualizingPanel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Panel { - fn from(value: CarouselPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CarouselPanel> for super::Panel { - fn from(value: &CarouselPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: CarouselPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CarouselPanel> for super::super::FrameworkElement { - fn from(value: &CarouselPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: CarouselPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CarouselPanel> for super::super::UIElement { - fn from(value: &CarouselPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CarouselPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CarouselPanel> for super::super::DependencyObject { - fn from(value: &CarouselPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CarouselPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for CarouselPanel {} -unsafe impl ::core::marker::Sync for CarouselPanel {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ColorPickerSlider(pub ::windows::core::IInspectable); -impl ColorPickerSlider { - pub fn ColorChannel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::ColorPickerHsvChannel = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetColorChannel(&self, value: super::ColorPickerHsvChannel) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ColorChannelProperty() -> ::windows::core::Result { - Self::IColorPickerSliderStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn new() -> ::windows::core::Result { - Self::IColorPickerSliderFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn IntermediateValue(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIntermediateValue(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn StepFrequency(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStepFrequency(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn SnapsTo(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: SliderSnapsTo = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSnapsTo(&self, value: SliderSnapsTo) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TickFrequency(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTickFrequency(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TickPlacement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: TickPlacement = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTickPlacement(&self, value: TickPlacement) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Orientation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::Orientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOrientation(&self, value: super::Orientation) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDirectionReversed(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDirectionReversed(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsThumbToolTipEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsThumbToolTipEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn ThumbToolTipValueConverter(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetThumbToolTipValueConverter<'a, Param0: ::windows::core::IntoParam<'a, super::super::Data::IValueConverter>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Header(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetHeader<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HeaderTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeaderTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Minimum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinimum(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Maximum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaximum(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSmallChange(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLargeChange(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Value(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetValue2(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ValueChanged<'a, Param0: ::windows::core::IntoParam<'a, RangeBaseValueChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveValueChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IColorPickerSliderStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IColorPickerSliderFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ColorPickerSlider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ColorPickerSlider;{94394d83-e0df-4c5f-bbcd-8155f4020440})"); -} -unsafe impl ::windows::core::Interface for ColorPickerSlider { - type Vtable = IColorPickerSlider_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94394d83_e0df_4c5f_bbcd_8155f4020440); -} -impl ::windows::core::RuntimeName for ColorPickerSlider { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ColorPickerSlider"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ColorPickerSlider) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ColorPickerSlider> for ::windows::core::IUnknown { - fn from(value: &ColorPickerSlider) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ColorPickerSlider) -> Self { - value.0 - } -} -impl ::core::convert::From<&ColorPickerSlider> for ::windows::core::IInspectable { - fn from(value: &ColorPickerSlider) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: ColorPickerSlider) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ColorPickerSlider> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &ColorPickerSlider) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: ColorPickerSlider) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ColorPickerSlider> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &ColorPickerSlider) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::Slider { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorPickerSlider> for super::Slider { - fn from(value: &ColorPickerSlider) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Slider> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::Slider> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Slider> for &ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::Slider> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for RangeBase { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorPickerSlider> for RangeBase { - fn from(value: &ColorPickerSlider) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, RangeBase> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, RangeBase> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, RangeBase> for &ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, RangeBase> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Control { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorPickerSlider> for super::Control { - fn from(value: &ColorPickerSlider) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorPickerSlider> for super::super::FrameworkElement { - fn from(value: &ColorPickerSlider) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorPickerSlider> for super::super::UIElement { - fn from(value: &ColorPickerSlider) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorPickerSlider> for super::super::DependencyObject { - fn from(value: &ColorPickerSlider) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ColorPickerSlider { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ColorPickerSlider {} -unsafe impl ::core::marker::Sync for ColorPickerSlider {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ColorSpectrum(pub ::windows::core::IInspectable); -impl ColorSpectrum { - pub fn Color(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::Color = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetColor<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Color>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn HsvColor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetHsvColor<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn MinHue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHue(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHue(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinSaturation(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinSaturation(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxSaturation(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxSaturation(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinValue(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxValue(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Shape(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::ColorSpectrumShape = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetShape(&self, value: super::ColorSpectrumShape) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Components(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::ColorSpectrumComponents = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetComponents(&self, value: super::ColorSpectrumComponents) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ColorChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveColorChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ColorProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn HsvColorProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn MinHueProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn MaxHueProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn MinSaturationProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn MaxSaturationProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn MinValueProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn MaxValueProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ShapeProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ComponentsProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn new() -> ::windows::core::Result { - Self::IColorSpectrumFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IColorSpectrumStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IColorSpectrumFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ColorSpectrum { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ColorSpectrum;{ce46f271-f509-4f98-8288-e4942fb385df})"); -} -unsafe impl ::windows::core::Interface for ColorSpectrum { - type Vtable = IColorSpectrum_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce46f271_f509_4f98_8288_e4942fb385df); -} -impl ::windows::core::RuntimeName for ColorSpectrum { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ColorSpectrum"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ColorSpectrum) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ColorSpectrum> for ::windows::core::IUnknown { - fn from(value: &ColorSpectrum) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ColorSpectrum) -> Self { - value.0 - } -} -impl ::core::convert::From<&ColorSpectrum> for ::windows::core::IInspectable { - fn from(value: &ColorSpectrum) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: ColorSpectrum) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ColorSpectrum> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &ColorSpectrum) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: ColorSpectrum) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ColorSpectrum> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &ColorSpectrum) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::Control { - fn from(value: ColorSpectrum) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorSpectrum> for super::Control { - fn from(value: &ColorSpectrum) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ColorSpectrum) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorSpectrum> for super::super::FrameworkElement { - fn from(value: &ColorSpectrum) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ColorSpectrum) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorSpectrum> for super::super::UIElement { - fn from(value: &ColorSpectrum) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ColorSpectrum) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ColorSpectrum> for super::super::DependencyObject { - fn from(value: &ColorSpectrum) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ColorSpectrum { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ColorSpectrum {} -unsafe impl ::core::marker::Sync for ColorSpectrum {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ComboBoxTemplateSettings(pub ::windows::core::IInspectable); -impl ComboBoxTemplateSettings { - pub fn DropDownOpenedHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DropDownClosedHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DropDownOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SelectedItemDirection(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: AnimationDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DropDownContentMinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for ComboBoxTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ComboBoxTemplateSettings;{83285c4e-17f6-4aa3-b61b-e87c718604ea})"); -} -unsafe impl ::windows::core::Interface for ComboBoxTemplateSettings { - type Vtable = IComboBoxTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x83285c4e_17f6_4aa3_b61b_e87c718604ea); -} -impl ::windows::core::RuntimeName for ComboBoxTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ComboBoxTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ComboBoxTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ComboBoxTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ComboBoxTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ComboBoxTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ComboBoxTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ComboBoxTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&ComboBoxTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ComboBoxTemplateSettings) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ComboBoxTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ComboBoxTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ComboBoxTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ComboBoxTemplateSettings> for super::super::DependencyObject { - fn from(value: &ComboBoxTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ComboBoxTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ComboBoxTemplateSettings {} -unsafe impl ::core::marker::Sync for ComboBoxTemplateSettings {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct CommandBarFlyoutCommandBar(pub ::windows::core::IInspectable); -impl CommandBarFlyoutCommandBar { - pub fn FlyoutTemplateSettings(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn new() -> ::windows::core::Result { - Self::ICommandBarFlyoutCommandBarFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn IsOpen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsOpen(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsSticky(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsSticky(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Opened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveOpened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Closed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveClosed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ClosedDisplayMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::AppBarClosedDisplayMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetClosedDisplayMode(&self, value: super::AppBarClosedDisplayMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TemplateSettings(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Opening<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveOpening<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Closing<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveClosing<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn PrimaryCommands(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn SecondaryCommands(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn CommandBarOverflowPresenterStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCommandBarOverflowPresenterStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CommandBarTemplateSettings(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn LightDismissOverlayMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::LightDismissOverlayMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLightDismissOverlayMode(&self, value: super::LightDismissOverlayMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultLabelPosition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::CommandBarDefaultLabelPosition = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetDefaultLabelPosition(&self, value: super::CommandBarDefaultLabelPosition) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OverflowButtonVisibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::CommandBarOverflowButtonVisibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOverflowButtonVisibility(&self, value: super::CommandBarOverflowButtonVisibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDynamicOverflowEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDynamicOverflowEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DynamicOverflowItemsChanging<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDynamicOverflowItemsChanging<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ICommandBarFlyoutCommandBarFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for CommandBarFlyoutCommandBar { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBar;{14146e7c-38c4-55c4-b706-ce18f6061e7e})"); -} -unsafe impl ::windows::core::Interface for CommandBarFlyoutCommandBar { - type Vtable = ICommandBarFlyoutCommandBar_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14146e7c_38c4_55c4_b706_ce18f6061e7e); -} -impl ::windows::core::RuntimeName for CommandBarFlyoutCommandBar { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBar"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for ::windows::core::IUnknown { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - value.0 - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for ::windows::core::IInspectable { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: CommandBarFlyoutCommandBar) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&CommandBarFlyoutCommandBar> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &CommandBarFlyoutCommandBar) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: CommandBarFlyoutCommandBar) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&CommandBarFlyoutCommandBar> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &CommandBarFlyoutCommandBar) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::CommandBar { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::CommandBar { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::CommandBar> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::CommandBar> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::CommandBar> for &CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::CommandBar> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::AppBar { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::AppBar { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::AppBar> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::AppBar> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::AppBar> for &CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::AppBar> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::ContentControl { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Control { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::Control { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::super::FrameworkElement { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::super::UIElement { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for super::super::DependencyObject { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CommandBarFlyoutCommandBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for CommandBarFlyoutCommandBar {} -unsafe impl ::core::marker::Sync for CommandBarFlyoutCommandBar {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct CommandBarFlyoutCommandBarTemplateSettings(pub ::windows::core::IInspectable); -impl CommandBarFlyoutCommandBarTemplateSettings { - pub fn OpenAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OpenAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CloseAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CurrentWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExpandedWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn WidthExpansionDelta(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn WidthExpansionAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn WidthExpansionAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn WidthExpansionMoreButtonAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn WidthExpansionMoreButtonAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExpandUpOverflowVerticalPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExpandDownOverflowVerticalPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExpandUpAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExpandUpAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExpandUpAnimationHoldPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExpandDownAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExpandDownAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExpandDownAnimationHoldPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ContentClipRect(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn OverflowContentClipRect(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for CommandBarFlyoutCommandBarTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBarTemplateSettings;{47642c44-26ff-5d14-9cfc-77dc64f3a447})"); -} -unsafe impl ::windows::core::Interface for CommandBarFlyoutCommandBarTemplateSettings { - type Vtable = ICommandBarFlyoutCommandBarTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47642c44_26ff_5d14_9cfc_77dc64f3a447); -} -impl ::windows::core::RuntimeName for CommandBarFlyoutCommandBarTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBarTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CommandBarFlyoutCommandBarTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBarTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &CommandBarFlyoutCommandBarTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CommandBarFlyoutCommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CommandBarFlyoutCommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CommandBarFlyoutCommandBarTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBarTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &CommandBarFlyoutCommandBarTemplateSettings) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CommandBarFlyoutCommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CommandBarFlyoutCommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CommandBarFlyoutCommandBarTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBarTemplateSettings> for super::super::DependencyObject { - fn from(value: &CommandBarFlyoutCommandBarTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CommandBarFlyoutCommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CommandBarFlyoutCommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for CommandBarFlyoutCommandBarTemplateSettings {} -unsafe impl ::core::marker::Sync for CommandBarFlyoutCommandBarTemplateSettings {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct CommandBarTemplateSettings(pub ::windows::core::IInspectable); -impl CommandBarTemplateSettings { - pub fn ContentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn OverflowContentClipRect(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OverflowContentMinWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OverflowContentMaxHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OverflowContentHorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OverflowContentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn NegativeOverflowContentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OverflowContentMaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn EffectiveOverflowButtonVisibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OverflowContentCompactYTranslation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OverflowContentMinimalYTranslation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OverflowContentHiddenYTranslation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for CommandBarTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.CommandBarTemplateSettings;{61c8f92c-05aa-414a-a2ae-482c5a46c08e})"); -} -unsafe impl ::windows::core::Interface for CommandBarTemplateSettings { - type Vtable = ICommandBarTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61c8f92c_05aa_414a_a2ae_482c5a46c08e); -} -impl ::windows::core::RuntimeName for CommandBarTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.CommandBarTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CommandBarTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&CommandBarTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &CommandBarTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CommandBarTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&CommandBarTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &CommandBarTemplateSettings) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CommandBarTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&CommandBarTemplateSettings> for super::super::DependencyObject { - fn from(value: &CommandBarTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CommandBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for CommandBarTemplateSettings {} -unsafe impl ::core::marker::Sync for CommandBarTemplateSettings {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct ComponentResourceLocation(pub i32); -impl ComponentResourceLocation { - pub const Application: ComponentResourceLocation = ComponentResourceLocation(0i32); - pub const Nested: ComponentResourceLocation = ComponentResourceLocation(1i32); -} -impl ::core::convert::From for ComponentResourceLocation { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for ComponentResourceLocation { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for ComponentResourceLocation { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation;i4)"); -} -impl ::windows::core::DefaultType for ComponentResourceLocation { - type DefaultType = Self; -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct DragCompletedEventArgs(pub ::windows::core::IInspectable); -impl DragCompletedEventArgs { - pub fn HorizontalChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn VerticalChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Canceled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalchange: f64, verticalchange: f64, canceled: bool) -> ::windows::core::Result { - Self::IDragCompletedEventArgsFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), horizontalchange, verticalchange, canceled, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn OriginalSource(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn IDragCompletedEventArgsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for DragCompletedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.DragCompletedEventArgs;{b04f29a1-bd16-48f6-a511-9c2763641331})"); -} -unsafe impl ::windows::core::Interface for DragCompletedEventArgs { - type Vtable = IDragCompletedEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb04f29a1_bd16_48f6_a511_9c2763641331); -} -impl ::windows::core::RuntimeName for DragCompletedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.DragCompletedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: DragCompletedEventArgs) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&DragCompletedEventArgs> for ::windows::core::IUnknown { - fn from(value: &DragCompletedEventArgs) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DragCompletedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DragCompletedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DragCompletedEventArgs) -> Self { - value.0 - } -} -impl ::core::convert::From<&DragCompletedEventArgs> for ::windows::core::IInspectable { - fn from(value: &DragCompletedEventArgs) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DragCompletedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DragCompletedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: DragCompletedEventArgs) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&DragCompletedEventArgs> for super::super::RoutedEventArgs { - fn from(value: &DragCompletedEventArgs) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for DragCompletedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &DragCompletedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for DragCompletedEventArgs {} -unsafe impl ::core::marker::Sync for DragCompletedEventArgs {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct DragCompletedEventHandler(::windows::core::IUnknown); -impl DragCompletedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { - let com = DragCompletedEventHandler_box:: { - vtable: &DragCompletedEventHandler_box::::VTABLE, - count: ::windows::core::RefCount::new(1), - invoke, - }; - unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, DragCompletedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for DragCompletedEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({36b28888-19ac-4b4e-9137-a6cf2b023883})"); -} -unsafe impl ::windows::core::Interface for DragCompletedEventHandler { - type Vtable = DragCompletedEventHandler_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36b28888_19ac_4b4e_9137_a6cf2b023883); -} -#[repr(C)] -#[doc(hidden)] -pub struct DragCompletedEventHandler_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(C)] -struct DragCompletedEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { - vtable: *const DragCompletedEventHandler_abi, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragCompletedEventHandler_box { - const VTABLE: DragCompletedEventHandler_abi = DragCompletedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); - unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { - &mut (*this).vtable as *mut _ as _ - } else { - ::core::ptr::null_mut() - }; - if (*interface).is_null() { - ::windows::core::HRESULT(0x8000_4002) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - let remaining = (*this).count.release(); - if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); - } - remaining - } - unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - ((*this).invoke)( - &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), - &*(&e as *const ::Abi as *const ::DefaultType), - ) - .into() - } -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct DragDeltaEventArgs(pub ::windows::core::IInspectable); -impl DragDeltaEventArgs { - pub fn HorizontalChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn VerticalChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalchange: f64, verticalchange: f64) -> ::windows::core::Result { - Self::IDragDeltaEventArgsFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), horizontalchange, verticalchange, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn OriginalSource(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn IDragDeltaEventArgsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for DragDeltaEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.DragDeltaEventArgs;{2c2dd73c-2806-49fc-aae9-6d792b572b6a})"); -} -unsafe impl ::windows::core::Interface for DragDeltaEventArgs { - type Vtable = IDragDeltaEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c2dd73c_2806_49fc_aae9_6d792b572b6a); -} -impl ::windows::core::RuntimeName for DragDeltaEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.DragDeltaEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: DragDeltaEventArgs) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&DragDeltaEventArgs> for ::windows::core::IUnknown { - fn from(value: &DragDeltaEventArgs) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DragDeltaEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DragDeltaEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DragDeltaEventArgs) -> Self { - value.0 - } -} -impl ::core::convert::From<&DragDeltaEventArgs> for ::windows::core::IInspectable { - fn from(value: &DragDeltaEventArgs) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DragDeltaEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DragDeltaEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: DragDeltaEventArgs) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&DragDeltaEventArgs> for super::super::RoutedEventArgs { - fn from(value: &DragDeltaEventArgs) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for DragDeltaEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &DragDeltaEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for DragDeltaEventArgs {} -unsafe impl ::core::marker::Sync for DragDeltaEventArgs {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct DragDeltaEventHandler(::windows::core::IUnknown); -impl DragDeltaEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { - let com = DragDeltaEventHandler_box:: { - vtable: &DragDeltaEventHandler_box::::VTABLE, - count: ::windows::core::RefCount::new(1), - invoke, - }; - unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, DragDeltaEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for DragDeltaEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({4ac24f9f-ac28-49e9-9189-dccffeb66472})"); -} -unsafe impl ::windows::core::Interface for DragDeltaEventHandler { - type Vtable = DragDeltaEventHandler_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ac24f9f_ac28_49e9_9189_dccffeb66472); -} -#[repr(C)] -#[doc(hidden)] -pub struct DragDeltaEventHandler_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(C)] -struct DragDeltaEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { - vtable: *const DragDeltaEventHandler_abi, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragDeltaEventHandler_box { - const VTABLE: DragDeltaEventHandler_abi = DragDeltaEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); - unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { - &mut (*this).vtable as *mut _ as _ - } else { - ::core::ptr::null_mut() - }; - if (*interface).is_null() { - ::windows::core::HRESULT(0x8000_4002) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - let remaining = (*this).count.release(); - if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); - } - remaining - } - unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - ((*this).invoke)( - &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), - &*(&e as *const ::Abi as *const ::DefaultType), - ) - .into() - } -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct DragStartedEventArgs(pub ::windows::core::IInspectable); -impl DragStartedEventArgs { - pub fn HorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn VerticalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontaloffset: f64, verticaloffset: f64) -> ::windows::core::Result { - Self::IDragStartedEventArgsFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), horizontaloffset, verticaloffset, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn OriginalSource(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn IDragStartedEventArgsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for DragStartedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.DragStartedEventArgs;{9f915dd0-a124-4366-bd85-2408214aeed4})"); -} -unsafe impl ::windows::core::Interface for DragStartedEventArgs { - type Vtable = IDragStartedEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9f915dd0_a124_4366_bd85_2408214aeed4); -} -impl ::windows::core::RuntimeName for DragStartedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.DragStartedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: DragStartedEventArgs) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&DragStartedEventArgs> for ::windows::core::IUnknown { - fn from(value: &DragStartedEventArgs) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DragStartedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DragStartedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DragStartedEventArgs) -> Self { - value.0 - } -} -impl ::core::convert::From<&DragStartedEventArgs> for ::windows::core::IInspectable { - fn from(value: &DragStartedEventArgs) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DragStartedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DragStartedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: DragStartedEventArgs) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&DragStartedEventArgs> for super::super::RoutedEventArgs { - fn from(value: &DragStartedEventArgs) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for DragStartedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &DragStartedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for DragStartedEventArgs {} -unsafe impl ::core::marker::Sync for DragStartedEventArgs {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct DragStartedEventHandler(::windows::core::IUnknown); -impl DragStartedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { - let com = DragStartedEventHandler_box:: { - vtable: &DragStartedEventHandler_box::::VTABLE, - count: ::windows::core::RefCount::new(1), - invoke, - }; - unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, DragStartedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for DragStartedEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({d2eea48a-c65a-495d-a2f1-72c66989142d})"); -} -unsafe impl ::windows::core::Interface for DragStartedEventHandler { - type Vtable = DragStartedEventHandler_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2eea48a_c65a_495d_a2f1_72c66989142d); -} -#[repr(C)] -#[doc(hidden)] -pub struct DragStartedEventHandler_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(C)] -struct DragStartedEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { - vtable: *const DragStartedEventHandler_abi, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> DragStartedEventHandler_box { - const VTABLE: DragStartedEventHandler_abi = DragStartedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); - unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { - &mut (*this).vtable as *mut _ as _ - } else { - ::core::ptr::null_mut() - }; - if (*interface).is_null() { - ::windows::core::HRESULT(0x8000_4002) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - let remaining = (*this).count.release(); - if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); - } - remaining - } - unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - ((*this).invoke)( - &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), - &*(&e as *const ::Abi as *const ::DefaultType), - ) - .into() - } -} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct EdgeTransitionLocation(pub i32); -impl EdgeTransitionLocation { - pub const Left: EdgeTransitionLocation = EdgeTransitionLocation(0i32); - pub const Top: EdgeTransitionLocation = EdgeTransitionLocation(1i32); - pub const Right: EdgeTransitionLocation = EdgeTransitionLocation(2i32); - pub const Bottom: EdgeTransitionLocation = EdgeTransitionLocation(3i32); -} -impl ::core::convert::From for EdgeTransitionLocation { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for EdgeTransitionLocation { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for EdgeTransitionLocation { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.EdgeTransitionLocation;i4)"); -} -impl ::windows::core::DefaultType for EdgeTransitionLocation { - type DefaultType = Self; -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct FlyoutBase(pub ::windows::core::IInspectable); -impl FlyoutBase { - pub fn Placement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: FlyoutPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPlacement(&self, value: FlyoutPlacementMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Opened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveOpened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Closed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveClosed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Opening<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveOpening<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ShowAt<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(&self, placementtarget: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), placementtarget.into_param().abi()).ok() } - } - pub fn Hide(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this)).ok() } - } - pub fn PlacementProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn AttachedFlyoutProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetAttachedFlyout<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(element: Param0) -> ::windows::core::Result { - Self::IFlyoutBaseStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) - }) - } - pub fn SetAttachedFlyout<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>, Param1: ::windows::core::IntoParam<'a, FlyoutBase>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IFlyoutBaseStatics(|this| unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - pub fn ShowAttachedFlyout<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(flyoutowner: Param0) -> ::windows::core::Result<()> { - Self::IFlyoutBaseStatics(|this| unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), flyoutowner.into_param().abi()).ok() }) - } - pub fn Target(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LightDismissOverlayMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::LightDismissOverlayMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLightDismissOverlayMode(&self, value: super::LightDismissOverlayMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Closing<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveClosing<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn AllowFocusOnInteractionProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn LightDismissOverlayModeProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn AllowFocusWhenDisabledProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ElementSoundModeProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn OverlayInputPassThroughElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOverlayInputPassThroughElement<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn OverlayInputPassThroughElementProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics3(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn ShowMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: FlyoutShowMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetShowMode(&self, value: FlyoutShowMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn InputDevicePrefersPrimaryCommands(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AreOpenCloseAnimationsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAreOpenCloseAnimationsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsOpen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ShowAt2<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, FlyoutShowOptions>>(&self, placementtarget: Param0, showoptions: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), placementtarget.into_param().abi(), showoptions.into_param().abi()).ok() } - } - pub fn TargetProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ShowModeProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn InputDevicePrefersPrimaryCommandsProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn AreOpenCloseAnimationsEnabledProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn IsOpenProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ShouldConstrainToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetShouldConstrainToRootBounds(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsConstrainedToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ShouldConstrainToRootBoundsProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics6(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn IFlyoutBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IFlyoutBaseStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IFlyoutBaseStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IFlyoutBaseStatics5 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IFlyoutBaseStatics6 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for FlyoutBase { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.FlyoutBase;{723eea0b-d12e-430d-a9f0-9bb32bbf9913})"); -} -unsafe impl ::windows::core::Interface for FlyoutBase { - type Vtable = IFlyoutBase_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x723eea0b_d12e_430d_a9f0_9bb32bbf9913); -} -impl ::windows::core::RuntimeName for FlyoutBase { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.FlyoutBase"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: FlyoutBase) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&FlyoutBase> for ::windows::core::IUnknown { - fn from(value: &FlyoutBase) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlyoutBase) -> Self { - value.0 - } -} -impl ::core::convert::From<&FlyoutBase> for ::windows::core::IInspectable { - fn from(value: &FlyoutBase) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FlyoutBase) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&FlyoutBase> for super::super::DependencyObject { - fn from(value: &FlyoutBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &FlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for FlyoutBase {} -unsafe impl ::core::marker::Sync for FlyoutBase {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct FlyoutBaseClosingEventArgs(pub ::windows::core::IInspectable); -impl FlyoutBaseClosingEventArgs { - pub fn Cancel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCancel(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for FlyoutBaseClosingEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.FlyoutBaseClosingEventArgs;{d075852d-b09a-4fd1-b005-db2ba01206fb})"); -} -unsafe impl ::windows::core::Interface for FlyoutBaseClosingEventArgs { - type Vtable = IFlyoutBaseClosingEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd075852d_b09a_4fd1_b005_db2ba01206fb); -} -impl ::windows::core::RuntimeName for FlyoutBaseClosingEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.FlyoutBaseClosingEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: FlyoutBaseClosingEventArgs) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&FlyoutBaseClosingEventArgs> for ::windows::core::IUnknown { - fn from(value: &FlyoutBaseClosingEventArgs) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlyoutBaseClosingEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlyoutBaseClosingEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlyoutBaseClosingEventArgs) -> Self { - value.0 - } -} -impl ::core::convert::From<&FlyoutBaseClosingEventArgs> for ::windows::core::IInspectable { - fn from(value: &FlyoutBaseClosingEventArgs) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlyoutBaseClosingEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlyoutBaseClosingEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -unsafe impl ::core::marker::Send for FlyoutBaseClosingEventArgs {} -unsafe impl ::core::marker::Sync for FlyoutBaseClosingEventArgs {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct FlyoutPlacementMode(pub i32); -impl FlyoutPlacementMode { - pub const Top: FlyoutPlacementMode = FlyoutPlacementMode(0i32); - pub const Bottom: FlyoutPlacementMode = FlyoutPlacementMode(1i32); - pub const Left: FlyoutPlacementMode = FlyoutPlacementMode(2i32); - pub const Right: FlyoutPlacementMode = FlyoutPlacementMode(3i32); - pub const Full: FlyoutPlacementMode = FlyoutPlacementMode(4i32); - pub const TopEdgeAlignedLeft: FlyoutPlacementMode = FlyoutPlacementMode(5i32); - pub const TopEdgeAlignedRight: FlyoutPlacementMode = FlyoutPlacementMode(6i32); - pub const BottomEdgeAlignedLeft: FlyoutPlacementMode = FlyoutPlacementMode(7i32); - pub const BottomEdgeAlignedRight: FlyoutPlacementMode = FlyoutPlacementMode(8i32); - pub const LeftEdgeAlignedTop: FlyoutPlacementMode = FlyoutPlacementMode(9i32); - pub const LeftEdgeAlignedBottom: FlyoutPlacementMode = FlyoutPlacementMode(10i32); - pub const RightEdgeAlignedTop: FlyoutPlacementMode = FlyoutPlacementMode(11i32); - pub const RightEdgeAlignedBottom: FlyoutPlacementMode = FlyoutPlacementMode(12i32); - pub const Auto: FlyoutPlacementMode = FlyoutPlacementMode(13i32); -} -impl ::core::convert::From for FlyoutPlacementMode { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for FlyoutPlacementMode { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for FlyoutPlacementMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.FlyoutPlacementMode;i4)"); -} -impl ::windows::core::DefaultType for FlyoutPlacementMode { - type DefaultType = Self; -} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct FlyoutShowMode(pub i32); -impl FlyoutShowMode { - pub const Auto: FlyoutShowMode = FlyoutShowMode(0i32); - pub const Standard: FlyoutShowMode = FlyoutShowMode(1i32); - pub const Transient: FlyoutShowMode = FlyoutShowMode(2i32); - pub const TransientWithDismissOnPointerMoveAway: FlyoutShowMode = FlyoutShowMode(3i32); -} -impl ::core::convert::From for FlyoutShowMode { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for FlyoutShowMode { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for FlyoutShowMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.FlyoutShowMode;i4)"); -} -impl ::windows::core::DefaultType for FlyoutShowMode { - type DefaultType = Self; -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct FlyoutShowOptions(pub ::windows::core::IInspectable); -impl FlyoutShowOptions { - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetPosition<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ExclusionRect(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetExclusionRect<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ShowMode(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: FlyoutShowMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetShowMode(&self, value: FlyoutShowMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Placement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: FlyoutPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPlacement(&self, value: FlyoutPlacementMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn new() -> ::windows::core::Result { - Self::IFlyoutShowOptionsFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn IFlyoutShowOptionsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for FlyoutShowOptions { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.FlyoutShowOptions;{57d693ad-0c74-54dd-b110-1ee43fabadd9})"); -} -unsafe impl ::windows::core::Interface for FlyoutShowOptions { - type Vtable = IFlyoutShowOptions_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x57d693ad_0c74_54dd_b110_1ee43fabadd9); -} -impl ::windows::core::RuntimeName for FlyoutShowOptions { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.FlyoutShowOptions"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: FlyoutShowOptions) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&FlyoutShowOptions> for ::windows::core::IUnknown { - fn from(value: &FlyoutShowOptions) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for FlyoutShowOptions { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a FlyoutShowOptions { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlyoutShowOptions) -> Self { - value.0 - } -} -impl ::core::convert::From<&FlyoutShowOptions> for ::windows::core::IInspectable { - fn from(value: &FlyoutShowOptions) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for FlyoutShowOptions { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a FlyoutShowOptions { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -unsafe impl ::core::marker::Send for FlyoutShowOptions {} -unsafe impl ::core::marker::Sync for FlyoutShowOptions {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct GeneratorDirection(pub i32); -impl GeneratorDirection { - pub const Forward: GeneratorDirection = GeneratorDirection(0i32); - pub const Backward: GeneratorDirection = GeneratorDirection(1i32); -} -impl ::core::convert::From for GeneratorDirection { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for GeneratorDirection { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for GeneratorDirection { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.GeneratorDirection;i4)"); -} -impl ::windows::core::DefaultType for GeneratorDirection { - type DefaultType = Self; -} -#[derive(:: core :: clone :: Clone, :: core :: marker :: Copy)] -#[repr(C)] -pub struct GeneratorPosition { - pub Index: i32, - pub Offset: i32, -} -impl GeneratorPosition {} -impl ::core::default::Default for GeneratorPosition { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -impl ::core::fmt::Debug for GeneratorPosition { - fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - fmt.debug_struct("GeneratorPosition").field("Index", &self.Index).field("Offset", &self.Offset).finish() - } -} -impl ::core::cmp::PartialEq for GeneratorPosition { - fn eq(&self, other: &Self) -> bool { - self.Index == other.Index && self.Offset == other.Offset - } -} -impl ::core::cmp::Eq for GeneratorPosition {} -unsafe impl ::windows::core::Abi for GeneratorPosition { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for GeneratorPosition { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"struct(Windows.UI.Xaml.Controls.Primitives.GeneratorPosition;i4;i4)"); -} -impl ::windows::core::DefaultType for GeneratorPosition { - type DefaultType = Self; -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct GeneratorPositionHelper(pub ::windows::core::IInspectable); -impl GeneratorPositionHelper { - pub fn FromIndexAndOffset(index: i32, offset: i32) -> ::windows::core::Result { - Self::IGeneratorPositionHelperStatics(|this| unsafe { - let mut result__: GeneratorPosition = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), index, offset, &mut result__).from_abi::(result__) - }) - } - pub fn IGeneratorPositionHelperStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for GeneratorPositionHelper { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.GeneratorPositionHelper;{cd40318d-7745-40d9-ab9d-abbda4a7ffea})"); -} -unsafe impl ::windows::core::Interface for GeneratorPositionHelper { - type Vtable = IGeneratorPositionHelper_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd40318d_7745_40d9_ab9d_abbda4a7ffea); -} -impl ::windows::core::RuntimeName for GeneratorPositionHelper { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.GeneratorPositionHelper"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GeneratorPositionHelper) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&GeneratorPositionHelper> for ::windows::core::IUnknown { - fn from(value: &GeneratorPositionHelper) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GeneratorPositionHelper { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GeneratorPositionHelper { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GeneratorPositionHelper) -> Self { - value.0 - } -} -impl ::core::convert::From<&GeneratorPositionHelper> for ::windows::core::IInspectable { - fn from(value: &GeneratorPositionHelper) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GeneratorPositionHelper { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GeneratorPositionHelper { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -unsafe impl ::core::marker::Send for GeneratorPositionHelper {} -unsafe impl ::core::marker::Sync for GeneratorPositionHelper {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct GridViewItemPresenter(pub ::windows::core::IInspectable); -impl GridViewItemPresenter { - pub fn SelectionCheckMarkVisualEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSelectionCheckMarkVisualEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckHintBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckHintBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckSelectingBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckSelectingBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn DragBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetDragBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn DragForeground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetDragForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusBorderBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn PlaceholderBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetPlaceholderBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn PointerOverBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetPointerOverBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedForeground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPointerOverBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedPointerOverBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPointerOverBorderBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedPointerOverBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectedBorderThickness(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSelectedBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn DisabledOpacity(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetDisabledOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DragOpacity(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetDragOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ReorderHintOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetReorderHintOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterHorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "deprecated")] - pub fn SetGridViewItemPresenterHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterVerticalContentAlignment(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "deprecated")] - pub fn SetGridViewItemPresenterVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterPadding(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "deprecated")] - pub fn SetGridViewItemPresenterPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn PointerOverBackgroundMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPointerOverBackgroundMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectionCheckMarkVisualEnabledProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckHintBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckSelectingBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DragBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DragForegroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn FocusBorderBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PlaceholderBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PointerOverBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedForegroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedPointerOverBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedPointerOverBorderBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedBorderThicknessProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DisabledOpacityProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DragOpacityProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ReorderHintOffsetProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterHorizontalContentAlignmentProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterVerticalContentAlignmentProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterPaddingProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PointerOverBackgroundMarginProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ContentMarginProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn new() -> ::windows::core::Result { - Self::IGridViewItemPresenterFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn OpticalMarginAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::OpticalMarginAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpticalMarginAlignment(&self, value: super::super::OpticalMarginAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TextLineBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::TextLineBounds = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTextLineBounds(&self, value: super::super::TextLineBounds) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TextWrapping(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::TextWrapping = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTextWrapping(&self, value: super::super::TextWrapping) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxLines(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxLines(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LineStackingStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::LineStackingStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLineStackingStrategy(&self, value: super::super::LineStackingStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LineHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLineHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::BrushTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IGridViewItemPresenterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IGridViewItemPresenterFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for GridViewItemPresenter { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.GridViewItemPresenter;{214f9010-56e2-4821-8a1c-2305709af94b})"); -} -unsafe impl ::windows::core::Interface for GridViewItemPresenter { - type Vtable = IGridViewItemPresenter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x214f9010_56e2_4821_8a1c_2305709af94b); -} -impl ::windows::core::RuntimeName for GridViewItemPresenter { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.GridViewItemPresenter"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GridViewItemPresenter) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&GridViewItemPresenter> for ::windows::core::IUnknown { - fn from(value: &GridViewItemPresenter) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewItemPresenter) -> Self { - value.0 - } -} -impl ::core::convert::From<&GridViewItemPresenter> for ::windows::core::IInspectable { - fn from(value: &GridViewItemPresenter) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: GridViewItemPresenter) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&GridViewItemPresenter> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &GridViewItemPresenter) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: GridViewItemPresenter) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&GridViewItemPresenter> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &GridViewItemPresenter) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::ContentPresenter { - fn from(value: GridViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemPresenter> for super::ContentPresenter { - fn from(value: &GridViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentPresenter> for GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentPresenter> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentPresenter> for &GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentPresenter> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: GridViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemPresenter> for super::super::FrameworkElement { - fn from(value: &GridViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: GridViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemPresenter> for super::super::UIElement { - fn from(value: &GridViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemPresenter> for super::super::DependencyObject { - fn from(value: &GridViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for GridViewItemPresenter {} -unsafe impl ::core::marker::Sync for GridViewItemPresenter {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct GridViewItemTemplateSettings(pub ::windows::core::IInspectable); -impl GridViewItemTemplateSettings { - pub fn DragItemsCount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for GridViewItemTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.GridViewItemTemplateSettings;{9e30baaf-165d-4267-a45e-1a43a75706ac})"); -} -unsafe impl ::windows::core::Interface for GridViewItemTemplateSettings { - type Vtable = IGridViewItemTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9e30baaf_165d_4267_a45e_1a43a75706ac); -} -impl ::windows::core::RuntimeName for GridViewItemTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.GridViewItemTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GridViewItemTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&GridViewItemTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &GridViewItemTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewItemTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&GridViewItemTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &GridViewItemTemplateSettings) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewItemTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&GridViewItemTemplateSettings> for super::super::DependencyObject { - fn from(value: &GridViewItemTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for GridViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &GridViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for GridViewItemTemplateSettings {} -unsafe impl ::core::marker::Sync for GridViewItemTemplateSettings {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct GroupHeaderPlacement(pub i32); -impl GroupHeaderPlacement { - pub const Top: GroupHeaderPlacement = GroupHeaderPlacement(0i32); - pub const Left: GroupHeaderPlacement = GroupHeaderPlacement(1i32); -} -impl ::core::convert::From for GroupHeaderPlacement { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for GroupHeaderPlacement { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for GroupHeaderPlacement { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.GroupHeaderPlacement;i4)"); -} -impl ::windows::core::DefaultType for GroupHeaderPlacement { - type DefaultType = Self; -} -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarButtonTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarButtonTemplateSettings { - type Vtable = IAppBarButtonTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcbc9b39d_0c95_4951_bff2_13963691c366); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarButtonTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarTemplateSettings { - type Vtable = IAppBarTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcc2a863_eb35_423c_8389_d7827be3bf67); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarTemplateSettings2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarTemplateSettings2 { - type Vtable = IAppBarTemplateSettings2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcbe66259_0399_5bcc_b925_4d5f5c9a4568); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarTemplateSettings2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IAppBarToggleButtonTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IAppBarToggleButtonTemplateSettings { - type Vtable = IAppBarToggleButtonTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaaf99c48_d8f4_40d9_9fa3_3a64f0fec5d8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarToggleButtonTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IButtonBase(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IButtonBase { - type Vtable = IButtonBase_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798674); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBase_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::ClickMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::ClickMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Input")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Input"))] usize, - #[cfg(feature = "UI_Xaml_Input")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Input"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IButtonBaseFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IButtonBaseFactory { - type Vtable = IButtonBaseFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x389b7c71_5220_42b2_9992_2690c1a6702f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBaseFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IButtonBaseStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IButtonBaseStatics { - type Vtable = IButtonBaseStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ef17e1_fe37_474f_9e97_3b5e0b30f2df); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBaseStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICalendarPanel(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICalendarPanel { - type Vtable = ICalendarPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfcd55a2d_02d3_4ee6_9a90_9df3ead00994); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICalendarPanel_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICalendarViewTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICalendarViewTemplateSettings { - type Vtable = ICalendarViewTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56c71483_64e1_477c_8a0b_cb2f3334b9b0); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICalendarViewTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICarouselPanel(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICarouselPanel { - type Vtable = ICarouselPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdeab78b2_373b_4151_8785_e544d0d9362b); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICarouselPanel_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, offset: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, offset: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, visual: ::windows::core::RawPtr, rectangle: super::super::super::super::Foundation::Rect, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICarouselPanelFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICarouselPanelFactory { - type Vtable = ICarouselPanelFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc1109404_9ae1_440e_a0dd_bbb6e2293cbe); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICarouselPanelFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorPickerSlider(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorPickerSlider { - type Vtable = IColorPickerSlider_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94394d83_e0df_4c5f_bbcd_8155f4020440); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSlider_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::ColorPickerHsvChannel) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::ColorPickerHsvChannel) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorPickerSliderFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorPickerSliderFactory { - type Vtable = IColorPickerSliderFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x06d879a2_8c07_4b1e_a940_9fbce8f49639); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSliderFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorPickerSliderStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorPickerSliderStatics { - type Vtable = IColorPickerSliderStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x22eafc6a_9fe3_4eee_8734_a1398ec4413a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSliderStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorSpectrum(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorSpectrum { - type Vtable = IColorSpectrum_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce46f271_f509_4f98_8288_e4942fb385df); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrum_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::super::Color) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Numerics::Vector4) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] usize, - #[cfg(feature = "Foundation_Numerics")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::super::super::Foundation::Numerics::Vector4) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::ColorSpectrumShape) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::ColorSpectrumShape) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::ColorSpectrumComponents) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::ColorSpectrumComponents) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorSpectrumFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorSpectrumFactory { - type Vtable = IColorSpectrumFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90c7e61e_904d_42ab_b44f_e68dbf0cdee9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrumFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IColorSpectrumStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IColorSpectrumStatics { - type Vtable = IColorSpectrumStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x906bee7c_2cee_4e90_968b_f0a5bd691b4a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrumStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IComboBoxTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IComboBoxTemplateSettings { - type Vtable = IComboBoxTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x83285c4e_17f6_4aa3_b61b_e87c718604ea); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AnimationDirection) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IComboBoxTemplateSettings2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IComboBoxTemplateSettings2 { - type Vtable = IComboBoxTemplateSettings2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00e90cd7_68be_449d_b5a7_76e26f703e9b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxTemplateSettings2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICommandBarFlyoutCommandBar(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICommandBarFlyoutCommandBar { - type Vtable = ICommandBarFlyoutCommandBar_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14146e7c_38c4_55c4_b706_ce18f6061e7e); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarFlyoutCommandBar_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICommandBarFlyoutCommandBarFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICommandBarFlyoutCommandBarFactory { - type Vtable = ICommandBarFlyoutCommandBarFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf8236f9f_5559_5697_8e6f_20d70ca17dd0); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarFlyoutCommandBarFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICommandBarFlyoutCommandBarTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICommandBarFlyoutCommandBarTemplateSettings { - type Vtable = ICommandBarFlyoutCommandBarTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47642c44_26ff_5d14_9cfc_77dc64f3a447); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarFlyoutCommandBarTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings { - type Vtable = ICommandBarTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61c8f92c_05aa_414a_a2ae_482c5a46c08e); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings2 { - type Vtable = ICommandBarTemplateSettings2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfbb24f93_c2e2_4177_a2b6_3cd705073cf6); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings3 { - type Vtable = ICommandBarTemplateSettings3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3bd71eba_3403_4bfe_842d_2ce8c511d245); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Visibility) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings4(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings4 { - type Vtable = ICommandBarTemplateSettings4_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf2562dd3_aa58_59c5_853b_828a19d1214e); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings4_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IDragCompletedEventArgs(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IDragCompletedEventArgs { - type Vtable = IDragCompletedEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb04f29a1_bd16_48f6_a511_9c2763641331); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragCompletedEventArgs_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IDragCompletedEventArgsFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IDragCompletedEventArgsFactory { - type Vtable = IDragCompletedEventArgsFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36a7d99d_148c_495f_a0fc_afc871d62f33); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragCompletedEventArgsFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, horizontalchange: f64, verticalchange: f64, canceled: bool, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IDragDeltaEventArgs(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IDragDeltaEventArgs { - type Vtable = IDragDeltaEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c2dd73c_2806_49fc_aae9_6d792b572b6a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragDeltaEventArgs_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IDragDeltaEventArgsFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IDragDeltaEventArgsFactory { - type Vtable = IDragDeltaEventArgsFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x46e7a1ef_ae15_44a6_8a04_95b0bf9ab876); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragDeltaEventArgsFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, horizontalchange: f64, verticalchange: f64, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IDragStartedEventArgs(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IDragStartedEventArgs { - type Vtable = IDragStartedEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9f915dd0_a124_4366_bd85_2408214aeed4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragStartedEventArgs_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IDragStartedEventArgsFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IDragStartedEventArgsFactory { - type Vtable = IDragStartedEventArgsFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5eefe579_c706_4781_a308_c9e7f4c6a1d7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragStartedEventArgsFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, horizontaloffset: f64, verticaloffset: f64, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBase(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBase { - type Vtable = IFlyoutBase_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x723eea0b_d12e_430d_a9f0_9bb32bbf9913); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut FlyoutPlacementMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: FlyoutPlacementMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, placementtarget: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBase2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBase2 { - type Vtable = IFlyoutBase2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf82b435e_65b3_41c6_a9e2_77b67bc4c00c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::LightDismissOverlayMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::LightDismissOverlayMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::ElementSoundMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::ElementSoundMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBase3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBase3 { - type Vtable = IFlyoutBase3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa89c9712_48e0_4240_95b9_0dfd0826a8d3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBase4(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBase4 { - type Vtable = IFlyoutBase4_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3897d69_a37f_4828_9b70_0ef67c03b5f8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase4_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Input")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, args: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Input"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBase5(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBase5 { - type Vtable = IFlyoutBase5_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad3ec0c7_12bb_5a73_b78e_105192ca73d6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase5_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut FlyoutShowMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: FlyoutShowMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, placementtarget: ::windows::core::RawPtr, showoptions: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBase6(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBase6 { - type Vtable = IFlyoutBase6_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5399de8c_06cc_5b52_b65a_ff9322d1c940); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase6_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBaseClosingEventArgs(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBaseClosingEventArgs { - type Vtable = IFlyoutBaseClosingEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd075852d_b09a_4fd1_b005_db2ba01206fb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseClosingEventArgs_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBaseFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBaseFactory { - type Vtable = IFlyoutBaseFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c3363d7_fca7_407e_920e_70e15e9f0bf1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBaseOverrides(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBaseOverrides { - type Vtable = IFlyoutBaseOverrides_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x101dec86_6f4d_45a4_9d0e_3ece6f16977e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseOverrides_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBaseOverrides4(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBaseOverrides4 { - type Vtable = IFlyoutBaseOverrides4_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa6bfd04d_5ff3_4418_add8_4042a88d2da5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseOverrides4_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Input")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, args: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Input"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics { - type Vtable = IFlyoutBaseStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe2d795e3_85c0_4de2_bac1_5294ca011a78); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flyoutowner: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics2 { - type Vtable = IFlyoutBaseStatics2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa8e913fe_2d60_4307_aad9_56b450121b58); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics3 { - type Vtable = IFlyoutBaseStatics3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ba92e4f_dd16_4be4_99db_bd9d4406c0f8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics5(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics5 { - type Vtable = IFlyoutBaseStatics5_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69edb25c_992a_542b_bcff_2f7f855523bd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics5_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics6(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics6 { - type Vtable = IFlyoutBaseStatics6_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96d49254_c91b_5246_8b39_afc2a2c50cf8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics6_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutShowOptions(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutShowOptions { - type Vtable = IFlyoutShowOptions_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x57d693ad_0c74_54dd_b110_1ee43fabadd9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutShowOptions_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut FlyoutShowMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: FlyoutShowMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut FlyoutPlacementMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: FlyoutPlacementMode) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IFlyoutShowOptionsFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IFlyoutShowOptionsFactory { - type Vtable = IFlyoutShowOptionsFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce596f61_2eb4_5b4e_af69_f9af42320eee); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutShowOptionsFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGeneratorPositionHelper(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGeneratorPositionHelper { - type Vtable = IGeneratorPositionHelper_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd40318d_7745_40d9_ab9d_abbda4a7ffea); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGeneratorPositionHelper_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGeneratorPositionHelperStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGeneratorPositionHelperStatics { - type Vtable = IGeneratorPositionHelperStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad4095cd_60ec_4588_8d60_39d29097a4df); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGeneratorPositionHelperStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: i32, offset: i32, result__: *mut GeneratorPosition) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewItemPresenter(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewItemPresenter { - type Vtable = IGridViewItemPresenter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x214f9010_56e2_4821_8a1c_2305709af94b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemPresenter_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::HorizontalAlignment) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::HorizontalAlignment) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::VerticalAlignment) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::VerticalAlignment) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewItemPresenterFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewItemPresenterFactory { - type Vtable = IGridViewItemPresenterFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x53c12178_63bb_4a65_a3f1_ab114cfc6ffe); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemPresenterFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewItemPresenterStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewItemPresenterStatics { - type Vtable = IGridViewItemPresenterStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe958f8c4_277e_4a72_a01e_9e1688980178); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemPresenterStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IGridViewItemTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IGridViewItemTemplateSettings { - type Vtable = IGridViewItemTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9e30baaf_165d_4267_a45e_1a43a75706ac); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IItemsChangedEventArgs(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IItemsChangedEventArgs { - type Vtable = IItemsChangedEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b45568_7d10_421e_be29_81839a91de20); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsChangedEventArgs_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut GeneratorPosition) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut GeneratorPosition) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IJumpListItemBackgroundConverter(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IJumpListItemBackgroundConverter { - type Vtable = IJumpListItemBackgroundConverter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x81177858_d224_410c_b16c_c5b6bb6188b2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IJumpListItemBackgroundConverter_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IJumpListItemBackgroundConverterStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IJumpListItemBackgroundConverterStatics { - type Vtable = IJumpListItemBackgroundConverterStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20e7c3dd_6f27_4808_b0be_83e0e9b5cc45); -} -#[repr(C)] -#[doc(hidden)] -pub struct IJumpListItemBackgroundConverterStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IJumpListItemForegroundConverter(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IJumpListItemForegroundConverter { - type Vtable = IJumpListItemForegroundConverter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1590ed38_c504_4796_a63a_5bfc9eefaae8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IJumpListItemForegroundConverter_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IJumpListItemForegroundConverterStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IJumpListItemForegroundConverterStatics { - type Vtable = IJumpListItemForegroundConverterStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x474e7352_210c_4673_ac6a_413f0e2c7750); -} -#[repr(C)] -#[doc(hidden)] -pub struct IJumpListItemForegroundConverterStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILayoutInformation(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILayoutInformation { - type Vtable = ILayoutInformation_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb5384c9b_c8cf_41b3_bf16_18c8420e72c9); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILayoutInformation_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILayoutInformationStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILayoutInformationStatics { - type Vtable = ILayoutInformationStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcf06cf99_58e9_4682_8326_50caab65ed7c); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILayoutInformationStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispatcher: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILayoutInformationStatics2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILayoutInformationStatics2 { - type Vtable = ILayoutInformationStatics2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x760315b5_6d4e_4939_ac61_639863cea36b); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILayoutInformationStatics2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Size) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemPresenter(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemPresenter { - type Vtable = IListViewItemPresenter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfc8946bd_a3a2_4969_8174_25b5d3c28033); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenter_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::HorizontalAlignment) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::HorizontalAlignment) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::VerticalAlignment) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::VerticalAlignment) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemPresenter2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemPresenter2 { - type Vtable = IListViewItemPresenter2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf5dc5496_e122_4c57_a625_ac4b08fb2d4c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenter2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ListViewItemPresenterCheckMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ListViewItemPresenterCheckMode) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemPresenter3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemPresenter3 { - type Vtable = IListViewItemPresenter3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36620013_0390_4e30_ad97_8744404f7010); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenter3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemPresenter4(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemPresenter4 { - type Vtable = IListViewItemPresenter4_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda600ac1_adea_5940_a18f_57582f96d99a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenter4_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::CornerRadius) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::CornerRadius) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::CornerRadius) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::CornerRadius) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ListViewItemPresenterSelectionIndicatorMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ListViewItemPresenterSelectionIndicatorMode) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemPresenterFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemPresenterFactory { - type Vtable = IListViewItemPresenterFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe0777cfd_f7e4_4a67_9ac0_a994fcacd020); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics { - type Vtable = IListViewItemPresenterStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6504a55a_15dd_42fb_aa5d_2d8ce2e9c294); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics2 { - type Vtable = IListViewItemPresenterStatics2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4cb3b945_d24d_42a3_9e83_a86d0618bf1b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics3 { - type Vtable = IListViewItemPresenterStatics3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc3d3d11e_fa26_4ce7_a4ed_ff948f01b7c0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics4(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics4 { - type Vtable = IListViewItemPresenterStatics4_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3917159e_74a1_5e7e_a743_e45be9fb919b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics4_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IListViewItemTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IListViewItemTemplateSettings { - type Vtable = IListViewItemTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67af84bf_8279_4686_9326_cd189f27575d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILoopingSelector(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILoopingSelector { - type Vtable = ILoopingSelector_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4c9a3e04_4827_49d9_8806_093957b0fd21); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelector_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILoopingSelectorItem(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILoopingSelectorItem { - type Vtable = ILoopingSelectorItem_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69714b9_27c6_4433_9d7c_0dbfb2f4344f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorItem_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILoopingSelectorPanel(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILoopingSelectorPanel { - type Vtable = ILoopingSelectorPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40a9ba70_1011_4778_87f7_6bfd20d6377d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorPanel_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ILoopingSelectorStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ILoopingSelectorStatics { - type Vtable = ILoopingSelectorStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03e8bafa_8c7d_4fc5_b92a_f049fb933cc5); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuFlyoutItemTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuFlyoutItemTemplateSettings { - type Vtable = IMenuFlyoutItemTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56ad1809_3a16_4147_81cb_d0b35c834e0f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutItemTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IMenuFlyoutPresenterTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IMenuFlyoutPresenterTemplateSettings { - type Vtable = IMenuFlyoutPresenterTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd68fd00d_629d_4349_ac51_b877c80983b8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutPresenterTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct INavigationViewItemPresenter(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for INavigationViewItemPresenter { - type Vtable = INavigationViewItemPresenter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9956d3fc_4693_59cb_b6bf_37249058be96); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemPresenter_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct INavigationViewItemPresenterFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for INavigationViewItemPresenterFactory { - type Vtable = INavigationViewItemPresenterFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbb062c50_4a36_52e7_9459_e89d02f3fc42); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemPresenterFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct INavigationViewItemPresenterStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for INavigationViewItemPresenterStatics { - type Vtable = INavigationViewItemPresenterStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x52814604_cfc1_5ad5_a3aa_fa355be6bd76); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemPresenterStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IOrientedVirtualizingPanel(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IOrientedVirtualizingPanel { - type Vtable = IOrientedVirtualizingPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf077b577_39bd_46ee_bdd7_0826beed71b8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IOrientedVirtualizingPanel_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, offset: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, offset: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, visual: ::windows::core::RawPtr, rectangle: super::super::super::super::Foundation::Rect, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IOrientedVirtualizingPanelFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IOrientedVirtualizingPanelFactory { - type Vtable = IOrientedVirtualizingPanelFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b8eaeaf_f92f_439d_9ebf_e9919f56c94d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IOrientedVirtualizingPanelFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPickerFlyoutBase(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPickerFlyoutBase { - type Vtable = IPickerFlyoutBase_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe33574ea_1076_44d1_9383_dc24ac5cff2a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutBase_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPickerFlyoutBaseFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPickerFlyoutBaseFactory { - type Vtable = IPickerFlyoutBaseFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ec27a53_9502_4beb_b342_00566c8f16b0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutBaseFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPickerFlyoutBaseOverrides(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPickerFlyoutBaseOverrides { - type Vtable = IPickerFlyoutBaseOverrides_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5bfc4f4a_4822_47b4_a958_77c20ba120d3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutBaseOverrides_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPickerFlyoutBaseStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPickerFlyoutBaseStatics { - type Vtable = IPickerFlyoutBaseStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5a4d0ac5_89ae_40e5_a7f1_bb702355adf3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutBaseStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotHeaderItem(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotHeaderItem { - type Vtable = IPivotHeaderItem_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x594572c2_82aa_410b_9e55_fd8e2c98862d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotHeaderItem_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotHeaderItemFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotHeaderItemFactory { - type Vtable = IPivotHeaderItemFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14308b37_185b_4117_bc77_dda2eb261b99); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotHeaderItemFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotHeaderPanel(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotHeaderPanel { - type Vtable = IPivotHeaderPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x21484ebc_9241_4203_bd37_6c08fb096612); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotHeaderPanel_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPivotPanel(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPivotPanel { - type Vtable = IPivotPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad4ebe80_22a9_4ca3_9212_2773b6359ff3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotPanel_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPopup(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPopup { - type Vtable = IPopup_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62418240_e6d3_4705_a1dc_39156456ee29); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopup_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation")))] usize, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation")))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPopup2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPopup2 { - type Vtable = IPopup2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x376a8c4c_aac0_4b20_966a_0b9364feb4b5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopup2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::LightDismissOverlayMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::LightDismissOverlayMode) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPopup3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPopup3 { - type Vtable = IPopup3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf9c46915_a65c_5f68_9f54_310a1b51095f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopup3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPopup4(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPopup4 { - type Vtable = IPopup4_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1870b836_df2f_5fc6_a5f2_748ed6ce7321); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopup4_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut PopupPlacementMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: PopupPlacementMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut PopupPlacementMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPopupStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPopupStatics { - type Vtable = IPopupStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5ae3bf1a_6e34_40d6_8a7f_ca822aaf59e3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopupStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPopupStatics2(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPopupStatics2 { - type Vtable = IPopupStatics2_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2b9ae9ec_55ef_43b6_b459_12e40ffa4302); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopupStatics2_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPopupStatics3(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPopupStatics3 { - type Vtable = IPopupStatics3_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00789589_c580_558f_945a_7d02ee004d3e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopupStatics3_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IPopupStatics4(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IPopupStatics4 { - type Vtable = IPopupStatics4_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd1a42c06_8bfa_5164_8554_48bfe6bd4cc6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopupStatics4_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IProgressBarTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IProgressBarTemplateSettings { - type Vtable = IProgressBarTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3fe2ea2a_e3f2_4c2b_9488_918d77d2bbe4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressBarTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IProgressRingTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IProgressRingTemplateSettings { - type Vtable = IProgressRingTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9b675ec_c723_42e6_83e9_9826272bdc0e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressRingTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRangeBase(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRangeBase { - type Vtable = IRangeBase_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798675); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBase_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRangeBaseFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRangeBaseFactory { - type Vtable = IRangeBaseFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x389b7c71_5220_42b2_9992_2690c1a67030); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRangeBaseOverrides(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRangeBaseOverrides { - type Vtable = IRangeBaseOverrides_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4291af39_7f0b_4bc2_99c4_06e7062682d8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseOverrides_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, oldminimum: f64, newminimum: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, oldmaximum: f64, newmaximum: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, oldvalue: f64, newvalue: f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRangeBaseStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRangeBaseStatics { - type Vtable = IRangeBaseStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ef17e1_fe37_474f_9e97_3b5e0b30f2e0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRangeBaseValueChangedEventArgs(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRangeBaseValueChangedEventArgs { - type Vtable = IRangeBaseValueChangedEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa1921777_d5c1_4f9c_a7b0_0401b7e6dc5c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseValueChangedEventArgs_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRepeatButton(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRepeatButton { - type Vtable = IRepeatButton_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02200df9_021a_484a_a93b_0f31020314e5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRepeatButton_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IRepeatButtonStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IRepeatButtonStatics { - type Vtable = IRepeatButtonStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3914ac4e_f462_4f73_8197_e8846639c682); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRepeatButtonStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IScrollBar(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IScrollBar { - type Vtable = IScrollBar_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf57ae6ca_d1a6_4b90_a4e9_54df1ba8d2ec); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollBar_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::Orientation) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::Orientation) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ScrollingIndicatorMode) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ScrollingIndicatorMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IScrollBarStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IScrollBarStatics { - type Vtable = IScrollBarStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x45eaf38d_b814_48cf_97f2_539eb16dfd4d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollBarStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IScrollEventArgs(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IScrollEventArgs { - type Vtable = IScrollEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc57e5168_3afe_448d_b752_2f364c75d743); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollEventArgs_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ScrollEventType) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct IScrollSnapPointsInfo(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IScrollSnapPointsInfo { - type Vtable = IScrollSnapPointsInfo_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1b5d1336_e61b_4d51_be41_fd8ddc55c58c); -} -impl IScrollSnapPointsInfo { - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) - } - } - pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for IScrollSnapPointsInfo { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{1b5d1336-e61b-4d51-be41-fd8ddc55c58c}"); -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IScrollSnapPointsInfo) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&IScrollSnapPointsInfo> for ::windows::core::IUnknown { - fn from(value: &IScrollSnapPointsInfo) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IScrollSnapPointsInfo { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IScrollSnapPointsInfo { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IScrollSnapPointsInfo) -> Self { - value.0 - } -} -impl ::core::convert::From<&IScrollSnapPointsInfo> for ::windows::core::IInspectable { - fn from(value: &IScrollSnapPointsInfo) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IScrollSnapPointsInfo { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IScrollSnapPointsInfo { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollSnapPointsInfo_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, orientation: super::Orientation, alignment: SnapPointsAlignment, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: *mut f32, result__: *mut f32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelector(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelector { - type Vtable = ISelector_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe30eb3a5_b36b_42dc_8527_cd25136c083c); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelector_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelectorFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelectorFactory { - type Vtable = ISelectorFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9be2995_d136_4600_b187_8ad56079b48a); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelectorItem(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelectorItem { - type Vtable = ISelectorItem_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x541c8d6c_0283_4581_b945_2a64c28a0646); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItem_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelectorItemFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelectorItemFactory { - type Vtable = ISelectorItemFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9363945_c86a_4b1e_9440_1879378d5313); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItemFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelectorItemStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelectorItemStatics { - type Vtable = ISelectorItemStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a353ab8_cbe9_4303_92e7_c8906e218392); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItemStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISelectorStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISelectorStatics { - type Vtable = ISelectorStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x13300b06_bd10_4e09_bff7_71efb8bbb42b); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISettingsFlyoutTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISettingsFlyoutTemplateSettings { - type Vtable = ISettingsFlyoutTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcf14c10_cea7_43f1_9d68_57605ded69d4); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISettingsFlyoutTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation")))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ISplitViewTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ISplitViewTemplateSettings { - type Vtable = ISplitViewTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc16ab5a7_4996_4443_b199_6b6b89124eab); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISplitViewTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::GridLength) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::GridLength) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IThumb(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IThumb { - type Vtable = IThumb_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b2b281_0d6a_45cf_b333_2402b037f099); -} -#[repr(C)] -#[doc(hidden)] -pub struct IThumb_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IThumbStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IThumbStatics { - type Vtable = IThumbStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x955024eb_36f3_4672_a186_baaf626ac4ad); -} -#[repr(C)] -#[doc(hidden)] -pub struct IThumbStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITickBar(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITickBar { - type Vtable = ITickBar_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x994683fa_f1f6_487d_a5ac_c15921bfa995); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITickBar_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, - #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct ITickBarStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for ITickBarStatics { - type Vtable = ITickBarStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c6d7e40_799d_4a54_be09_1fefc61d018e); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITickBarStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleButton(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleButton { - type Vtable = IToggleButton_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x589877fb_0fc7_4036_9d8b_127dfa75c16d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButton_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, - #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] usize, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleButtonFactory(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleButtonFactory { - type Vtable = IToggleButtonFactory_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd56aa2fc_fc7f_449c_9855_7a1055d668a8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonFactory_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleButtonOverrides(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleButtonOverrides { - type Vtable = IToggleButtonOverrides_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd20e4c28_f18b_491a_9a45_f1a04a9369a4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonOverrides_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleButtonStatics(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleButtonStatics { - type Vtable = IToggleButtonStatics_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaf1eab12_0128_4f67_9c5a_82320c445d19); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonStatics_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToggleSwitchTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToggleSwitchTemplateSettings { - type Vtable = IToggleSwitchTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02b7bdcd_628a_4363_86e0_51d6e2e89e58); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleSwitchTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[doc(hidden)] -pub struct IToolTipTemplateSettings(pub ::windows::core::IInspectable); -unsafe impl ::windows::core::Interface for IToolTipTemplateSettings { - type Vtable = IToolTipTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd4388247_0ec4_4506_affd_afac2225b48c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToolTipTemplateSettings_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, -); -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ItemsChangedEventArgs(pub ::windows::core::IInspectable); -impl ItemsChangedEventArgs { - pub fn Action(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: GeneratorPosition = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OldPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: GeneratorPosition = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ItemCount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ItemUICount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for ItemsChangedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ItemsChangedEventArgs;{e8b45568-7d10-421e-be29-81839a91de20})"); -} -unsafe impl ::windows::core::Interface for ItemsChangedEventArgs { - type Vtable = IItemsChangedEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b45568_7d10_421e_be29_81839a91de20); -} -impl ::windows::core::RuntimeName for ItemsChangedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ItemsChangedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ItemsChangedEventArgs) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ItemsChangedEventArgs> for ::windows::core::IUnknown { - fn from(value: &ItemsChangedEventArgs) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ItemsChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ItemsChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ItemsChangedEventArgs) -> Self { - value.0 - } -} -impl ::core::convert::From<&ItemsChangedEventArgs> for ::windows::core::IInspectable { - fn from(value: &ItemsChangedEventArgs) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ItemsChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ItemsChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -unsafe impl ::core::marker::Send for ItemsChangedEventArgs {} -unsafe impl ::core::marker::Sync for ItemsChangedEventArgs {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ItemsChangedEventHandler(::windows::core::IUnknown); -impl ItemsChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { - let com = ItemsChangedEventHandler_box:: { - vtable: &ItemsChangedEventHandler_box::::VTABLE, - count: ::windows::core::RefCount::new(1), - invoke, - }; - unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ItemsChangedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for ItemsChangedEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({178257be-a304-482f-8bf0-b9d2e39612a3})"); -} -unsafe impl ::windows::core::Interface for ItemsChangedEventHandler { - type Vtable = ItemsChangedEventHandler_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x178257be_a304_482f_8bf0_b9d2e39612a3); -} -#[repr(C)] -#[doc(hidden)] -pub struct ItemsChangedEventHandler_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(C)] -struct ItemsChangedEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { - vtable: *const ItemsChangedEventHandler_abi, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ItemsChangedEventHandler_box { - const VTABLE: ItemsChangedEventHandler_abi = ItemsChangedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); - unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { - &mut (*this).vtable as *mut _ as _ - } else { - ::core::ptr::null_mut() - }; - if (*interface).is_null() { - ::windows::core::HRESULT(0x8000_4002) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - let remaining = (*this).count.release(); - if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); - } - remaining - } - unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - ((*this).invoke)( - &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), - &*(&e as *const ::Abi as *const ::DefaultType), - ) - .into() - } -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct JumpListItemBackgroundConverter(pub ::windows::core::IInspectable); -impl JumpListItemBackgroundConverter { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Enabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetEnabled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Disabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetDisabled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "UI_Xaml_Data", feature = "UI_Xaml_Interop"))] - pub fn Convert<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, super::super::Interop::TypeName>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0, targettype: Param1, parameter: Param2, language: Param3) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(all(feature = "UI_Xaml_Data", feature = "UI_Xaml_Interop"))] - pub fn ConvertBack<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, super::super::Interop::TypeName>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0, targettype: Param1, parameter: Param2, language: Param3) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn EnabledProperty() -> ::windows::core::Result { - Self::IJumpListItemBackgroundConverterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DisabledProperty() -> ::windows::core::Result { - Self::IJumpListItemBackgroundConverterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn IJumpListItemBackgroundConverterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for JumpListItemBackgroundConverter { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.JumpListItemBackgroundConverter;{81177858-d224-410c-b16c-c5b6bb6188b2})"); -} -unsafe impl ::windows::core::Interface for JumpListItemBackgroundConverter { - type Vtable = IJumpListItemBackgroundConverter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x81177858_d224_410c_b16c_c5b6bb6188b2); -} -impl ::windows::core::RuntimeName for JumpListItemBackgroundConverter { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.JumpListItemBackgroundConverter"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: JumpListItemBackgroundConverter) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&JumpListItemBackgroundConverter> for ::windows::core::IUnknown { - fn from(value: &JumpListItemBackgroundConverter) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for JumpListItemBackgroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a JumpListItemBackgroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: JumpListItemBackgroundConverter) -> Self { - value.0 - } -} -impl ::core::convert::From<&JumpListItemBackgroundConverter> for ::windows::core::IInspectable { - fn from(value: &JumpListItemBackgroundConverter) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for JumpListItemBackgroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a JumpListItemBackgroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Data")] -impl ::core::convert::TryFrom for super::super::Data::IValueConverter { - type Error = ::windows::core::Error; - fn try_from(value: JumpListItemBackgroundConverter) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Data")] -impl ::core::convert::TryFrom<&JumpListItemBackgroundConverter> for super::super::Data::IValueConverter { - type Error = ::windows::core::Error; - fn try_from(value: &JumpListItemBackgroundConverter) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Data")] -impl<'a> ::windows::core::IntoParam<'a, super::super::Data::IValueConverter> for JumpListItemBackgroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::Data::IValueConverter> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Data")] -impl<'a> ::windows::core::IntoParam<'a, super::super::Data::IValueConverter> for &JumpListItemBackgroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::Data::IValueConverter> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: JumpListItemBackgroundConverter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&JumpListItemBackgroundConverter> for super::super::DependencyObject { - fn from(value: &JumpListItemBackgroundConverter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for JumpListItemBackgroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &JumpListItemBackgroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for JumpListItemBackgroundConverter {} -unsafe impl ::core::marker::Sync for JumpListItemBackgroundConverter {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct JumpListItemForegroundConverter(pub ::windows::core::IInspectable); -impl JumpListItemForegroundConverter { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Enabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetEnabled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Disabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetDisabled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "UI_Xaml_Data", feature = "UI_Xaml_Interop"))] - pub fn Convert<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, super::super::Interop::TypeName>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0, targettype: Param1, parameter: Param2, language: Param3) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(all(feature = "UI_Xaml_Data", feature = "UI_Xaml_Interop"))] - pub fn ConvertBack<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, super::super::Interop::TypeName>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0, targettype: Param1, parameter: Param2, language: Param3) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn EnabledProperty() -> ::windows::core::Result { - Self::IJumpListItemForegroundConverterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DisabledProperty() -> ::windows::core::Result { - Self::IJumpListItemForegroundConverterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn IJumpListItemForegroundConverterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for JumpListItemForegroundConverter { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.JumpListItemForegroundConverter;{1590ed38-c504-4796-a63a-5bfc9eefaae8})"); -} -unsafe impl ::windows::core::Interface for JumpListItemForegroundConverter { - type Vtable = IJumpListItemForegroundConverter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1590ed38_c504_4796_a63a_5bfc9eefaae8); -} -impl ::windows::core::RuntimeName for JumpListItemForegroundConverter { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.JumpListItemForegroundConverter"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: JumpListItemForegroundConverter) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&JumpListItemForegroundConverter> for ::windows::core::IUnknown { - fn from(value: &JumpListItemForegroundConverter) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for JumpListItemForegroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a JumpListItemForegroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: JumpListItemForegroundConverter) -> Self { - value.0 - } -} -impl ::core::convert::From<&JumpListItemForegroundConverter> for ::windows::core::IInspectable { - fn from(value: &JumpListItemForegroundConverter) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for JumpListItemForegroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a JumpListItemForegroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Xaml_Data")] -impl ::core::convert::TryFrom for super::super::Data::IValueConverter { - type Error = ::windows::core::Error; - fn try_from(value: JumpListItemForegroundConverter) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Data")] -impl ::core::convert::TryFrom<&JumpListItemForegroundConverter> for super::super::Data::IValueConverter { - type Error = ::windows::core::Error; - fn try_from(value: &JumpListItemForegroundConverter) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Data")] -impl<'a> ::windows::core::IntoParam<'a, super::super::Data::IValueConverter> for JumpListItemForegroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::Data::IValueConverter> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Data")] -impl<'a> ::windows::core::IntoParam<'a, super::super::Data::IValueConverter> for &JumpListItemForegroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::Data::IValueConverter> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: JumpListItemForegroundConverter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&JumpListItemForegroundConverter> for super::super::DependencyObject { - fn from(value: &JumpListItemForegroundConverter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for JumpListItemForegroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &JumpListItemForegroundConverter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for JumpListItemForegroundConverter {} -unsafe impl ::core::marker::Sync for JumpListItemForegroundConverter {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct LayoutInformation(pub ::windows::core::IInspectable); -impl LayoutInformation { - pub fn GetLayoutExceptionElement<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(dispatcher: Param0) -> ::windows::core::Result { - Self::ILayoutInformationStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dispatcher.into_param().abi(), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "Foundation")] - pub fn GetLayoutSlot<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(element: Param0) -> ::windows::core::Result { - Self::ILayoutInformationStatics(|this| unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "Foundation")] - pub fn GetAvailableSize<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(element: Param0) -> ::windows::core::Result { - Self::ILayoutInformationStatics2(|this| unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) - }) - } - pub fn ILayoutInformationStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn ILayoutInformationStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for LayoutInformation { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.LayoutInformation;{b5384c9b-c8cf-41b3-bf16-18c8420e72c9})"); -} -unsafe impl ::windows::core::Interface for LayoutInformation { - type Vtable = ILayoutInformation_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb5384c9b_c8cf_41b3_bf16_18c8420e72c9); -} -impl ::windows::core::RuntimeName for LayoutInformation { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.LayoutInformation"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: LayoutInformation) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&LayoutInformation> for ::windows::core::IUnknown { - fn from(value: &LayoutInformation) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LayoutInformation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LayoutInformation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LayoutInformation) -> Self { - value.0 - } -} -impl ::core::convert::From<&LayoutInformation> for ::windows::core::IInspectable { - fn from(value: &LayoutInformation) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LayoutInformation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LayoutInformation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -unsafe impl ::core::marker::Send for LayoutInformation {} -unsafe impl ::core::marker::Sync for LayoutInformation {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListViewItemPresenter(pub ::windows::core::IInspectable); -impl ListViewItemPresenter { - pub fn SelectionCheckMarkVisualEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSelectionCheckMarkVisualEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckHintBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckHintBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckSelectingBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckSelectingBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn DragBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetDragBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn DragForeground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetDragForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusBorderBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn PlaceholderBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetPlaceholderBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn PointerOverBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetPointerOverBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedForeground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPointerOverBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedPointerOverBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPointerOverBorderBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedPointerOverBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectedBorderThickness(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSelectedBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn DisabledOpacity(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetDisabledOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DragOpacity(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetDragOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ReorderHintOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetReorderHintOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterHorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "deprecated")] - pub fn SetListViewItemPresenterHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterVerticalContentAlignment(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "deprecated")] - pub fn SetListViewItemPresenterVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterPadding(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "deprecated")] - pub fn SetListViewItemPresenterPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn PointerOverBackgroundMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPointerOverBackgroundMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPressedBackground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedPressedBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn PressedBackground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetPressedBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusSecondaryBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusSecondaryBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CheckMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ListViewItemPresenterCheckMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCheckMode(&self, value: ListViewItemPresenterCheckMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn PointerOverForeground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetPointerOverForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectionCheckMarkVisualEnabledProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckHintBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckSelectingBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DragBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DragForegroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn FocusBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PlaceholderBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PointerOverBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedForegroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedPointerOverBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedPointerOverBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedBorderThicknessProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DisabledOpacityProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DragOpacityProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ReorderHintOffsetProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterHorizontalContentAlignmentProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterVerticalContentAlignmentProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterPaddingProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PointerOverBackgroundMarginProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ContentMarginProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedPressedBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PressedBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn FocusSecondaryBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckModeProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PointerOverForegroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn new() -> ::windows::core::Result { - Self::IListViewItemPresenterFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RevealBackground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRevealBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RevealBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRevealBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn RevealBorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRevealBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn RevealBackgroundShowsAboveContent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRevealBackgroundShowsAboveContent(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RevealBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics3(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn RevealBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics3(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn RevealBorderThicknessProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics3(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn RevealBackgroundShowsAboveContentProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics3(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedDisabledBackground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedDisabledBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckPressedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckPressedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckDisabledBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckDisabledBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxPointerOverBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxPointerOverBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxPressedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxPressedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxDisabledBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxDisabledBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxSelectedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxSelectedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxSelectedPointerOverBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxSelectedPointerOverBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxSelectedPressedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxSelectedPressedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxSelectedDisabledBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxSelectedDisabledBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxPointerOverBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxPointerOverBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxPressedBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxPressedBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxDisabledBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCheckBoxDisabledBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CheckBoxCornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCheckBoxCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectionIndicatorCornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSelectionIndicatorCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectionIndicatorVisualEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSelectionIndicatorVisualEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn SelectionIndicatorMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ListViewItemPresenterSelectionIndicatorMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSelectionIndicatorMode(&self, value: ListViewItemPresenterSelectionIndicatorMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectionIndicatorBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectionIndicatorBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectionIndicatorPointerOverBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectionIndicatorPointerOverBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectionIndicatorPressedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectionIndicatorPressedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectionIndicatorDisabledBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectionIndicatorDisabledBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPressedBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedPressedBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedDisabledBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedDisabledBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedInnerBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetSelectedInnerBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn PointerOverBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetPointerOverBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectedDisabledBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckPressedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckDisabledBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxPointerOverBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxPressedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxDisabledBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxSelectedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxSelectedPointerOverBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxSelectedPressedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxSelectedDisabledBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxPointerOverBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxPressedBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxDisabledBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn CheckBoxCornerRadiusProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectionIndicatorCornerRadiusProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectionIndicatorVisualEnabledProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectionIndicatorModeProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectionIndicatorBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectionIndicatorPointerOverBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectionIndicatorPressedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectionIndicatorDisabledBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedPressedBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedDisabledBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedInnerBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PointerOverBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn OpticalMarginAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::OpticalMarginAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpticalMarginAlignment(&self, value: super::super::OpticalMarginAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TextLineBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::TextLineBounds = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTextLineBounds(&self, value: super::super::TextLineBounds) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TextWrapping(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::TextWrapping = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTextWrapping(&self, value: super::super::TextWrapping) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxLines(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxLines(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LineStackingStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::LineStackingStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLineStackingStrategy(&self, value: super::super::LineStackingStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LineHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLineHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::BrushTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IListViewItemPresenterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IListViewItemPresenterStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IListViewItemPresenterFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IListViewItemPresenterStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IListViewItemPresenterStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ListViewItemPresenter { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ListViewItemPresenter;{fc8946bd-a3a2-4969-8174-25b5d3c28033})"); -} -unsafe impl ::windows::core::Interface for ListViewItemPresenter { - type Vtable = IListViewItemPresenter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfc8946bd_a3a2_4969_8174_25b5d3c28033); -} -impl ::windows::core::RuntimeName for ListViewItemPresenter { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ListViewItemPresenter"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListViewItemPresenter) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListViewItemPresenter> for ::windows::core::IUnknown { - fn from(value: &ListViewItemPresenter) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewItemPresenter) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListViewItemPresenter> for ::windows::core::IInspectable { - fn from(value: &ListViewItemPresenter) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: ListViewItemPresenter) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ListViewItemPresenter> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewItemPresenter) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: ListViewItemPresenter) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ListViewItemPresenter> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &ListViewItemPresenter) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::ContentPresenter { - fn from(value: ListViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemPresenter> for super::ContentPresenter { - fn from(value: &ListViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentPresenter> for ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentPresenter> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentPresenter> for &ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentPresenter> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ListViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemPresenter> for super::super::FrameworkElement { - fn from(value: &ListViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ListViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemPresenter> for super::super::UIElement { - fn from(value: &ListViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemPresenter> for super::super::DependencyObject { - fn from(value: &ListViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListViewItemPresenter {} -unsafe impl ::core::marker::Sync for ListViewItemPresenter {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct ListViewItemPresenterCheckMode(pub i32); -impl ListViewItemPresenterCheckMode { - pub const Inline: ListViewItemPresenterCheckMode = ListViewItemPresenterCheckMode(0i32); - pub const Overlay: ListViewItemPresenterCheckMode = ListViewItemPresenterCheckMode(1i32); -} -impl ::core::convert::From for ListViewItemPresenterCheckMode { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for ListViewItemPresenterCheckMode { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for ListViewItemPresenterCheckMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ListViewItemPresenterCheckMode;i4)"); -} -impl ::windows::core::DefaultType for ListViewItemPresenterCheckMode { - type DefaultType = Self; -} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct ListViewItemPresenterSelectionIndicatorMode(pub i32); -impl ListViewItemPresenterSelectionIndicatorMode { - pub const Inline: ListViewItemPresenterSelectionIndicatorMode = ListViewItemPresenterSelectionIndicatorMode(0i32); - pub const Overlay: ListViewItemPresenterSelectionIndicatorMode = ListViewItemPresenterSelectionIndicatorMode(1i32); -} -impl ::core::convert::From for ListViewItemPresenterSelectionIndicatorMode { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for ListViewItemPresenterSelectionIndicatorMode { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for ListViewItemPresenterSelectionIndicatorMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ListViewItemPresenterSelectionIndicatorMode;i4)"); -} -impl ::windows::core::DefaultType for ListViewItemPresenterSelectionIndicatorMode { - type DefaultType = Self; -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ListViewItemTemplateSettings(pub ::windows::core::IInspectable); -impl ListViewItemTemplateSettings { - pub fn DragItemsCount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for ListViewItemTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ListViewItemTemplateSettings;{67af84bf-8279-4686-9326-cd189f27575d})"); -} -unsafe impl ::windows::core::Interface for ListViewItemTemplateSettings { - type Vtable = IListViewItemTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67af84bf_8279_4686_9326_cd189f27575d); -} -impl ::windows::core::RuntimeName for ListViewItemTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ListViewItemTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ListViewItemTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ListViewItemTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ListViewItemTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewItemTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&ListViewItemTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ListViewItemTemplateSettings) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewItemTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ListViewItemTemplateSettings> for super::super::DependencyObject { - fn from(value: &ListViewItemTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ListViewItemTemplateSettings {} -unsafe impl ::core::marker::Sync for ListViewItemTemplateSettings {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct LoopingSelector(pub ::windows::core::IInspectable); -impl LoopingSelector { - pub fn ShouldLoop(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetShouldLoop(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn SetItems<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVector<::windows::core::IInspectable>>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectedIndex(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSelectedIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn SelectedItem(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetSelectedItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ItemWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetItemWidth(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ItemHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetItemHeight(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ItemTemplate(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetItemTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SelectionChanged<'a, Param0: ::windows::core::IntoParam<'a, super::SelectionChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSelectionChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ShouldLoopProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ItemsProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedIndexProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedItemProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ItemWidthProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ItemHeightProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ItemTemplateProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ILoopingSelectorStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for LoopingSelector { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.LoopingSelector;{4c9a3e04-4827-49d9-8806-093957b0fd21})"); -} -unsafe impl ::windows::core::Interface for LoopingSelector { - type Vtable = ILoopingSelector_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4c9a3e04_4827_49d9_8806_093957b0fd21); -} -impl ::windows::core::RuntimeName for LoopingSelector { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.LoopingSelector"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: LoopingSelector) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&LoopingSelector> for ::windows::core::IUnknown { - fn from(value: &LoopingSelector) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelector) -> Self { - value.0 - } -} -impl ::core::convert::From<&LoopingSelector> for ::windows::core::IInspectable { - fn from(value: &LoopingSelector) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelector) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&LoopingSelector> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelector) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelector) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&LoopingSelector> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelector) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::Control { - fn from(value: LoopingSelector) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelector> for super::Control { - fn from(value: &LoopingSelector) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: LoopingSelector) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelector> for super::super::FrameworkElement { - fn from(value: &LoopingSelector) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: LoopingSelector) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelector> for super::super::UIElement { - fn from(value: &LoopingSelector) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelector) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelector> for super::super::DependencyObject { - fn from(value: &LoopingSelector) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for LoopingSelector {} -unsafe impl ::core::marker::Sync for LoopingSelector {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct LoopingSelectorItem(pub ::windows::core::IInspectable); -impl LoopingSelectorItem { - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for LoopingSelectorItem { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.LoopingSelectorItem;{c69714b9-27c6-4433-9d7c-0dbfb2f4344f})"); -} -unsafe impl ::windows::core::Interface for LoopingSelectorItem { - type Vtable = ILoopingSelectorItem_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69714b9_27c6_4433_9d7c_0dbfb2f4344f); -} -impl ::windows::core::RuntimeName for LoopingSelectorItem { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.LoopingSelectorItem"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: LoopingSelectorItem) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&LoopingSelectorItem> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorItem) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorItem) -> Self { - value.0 - } -} -impl ::core::convert::From<&LoopingSelectorItem> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorItem) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorItem) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&LoopingSelectorItem> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorItem) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorItem) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&LoopingSelectorItem> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorItem) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: LoopingSelectorItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItem> for super::ContentControl { - fn from(value: &LoopingSelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Control { - fn from(value: LoopingSelectorItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItem> for super::Control { - fn from(value: &LoopingSelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: LoopingSelectorItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItem> for super::super::FrameworkElement { - fn from(value: &LoopingSelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: LoopingSelectorItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItem> for super::super::UIElement { - fn from(value: &LoopingSelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorItem> for super::super::DependencyObject { - fn from(value: &LoopingSelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorItem {} -unsafe impl ::core::marker::Sync for LoopingSelectorItem {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct LoopingSelectorPanel(pub ::windows::core::IInspectable); -impl LoopingSelectorPanel { - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) - } - } - pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsItemsHost(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ChildrenTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetChildrenTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::BrushTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for LoopingSelectorPanel { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.LoopingSelectorPanel;{40a9ba70-1011-4778-87f7-6bfd20d6377d})"); -} -unsafe impl ::windows::core::Interface for LoopingSelectorPanel { - type Vtable = ILoopingSelectorPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40a9ba70_1011_4778_87f7_6bfd20d6377d); -} -impl ::windows::core::RuntimeName for LoopingSelectorPanel { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.LoopingSelectorPanel"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: LoopingSelectorPanel) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&LoopingSelectorPanel> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorPanel) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorPanel) -> Self { - value.0 - } -} -impl ::core::convert::From<&LoopingSelectorPanel> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorPanel) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::TryFrom for IScrollSnapPointsInfo { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&LoopingSelectorPanel> for IScrollSnapPointsInfo { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for &LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&LoopingSelectorPanel> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: LoopingSelectorPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&LoopingSelectorPanel> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &LoopingSelectorPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::Canvas { - fn from(value: LoopingSelectorPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorPanel> for super::Canvas { - fn from(value: &LoopingSelectorPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Canvas> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Canvas> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Canvas> for &LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Canvas> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Panel { - fn from(value: LoopingSelectorPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorPanel> for super::Panel { - fn from(value: &LoopingSelectorPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: LoopingSelectorPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorPanel> for super::super::FrameworkElement { - fn from(value: &LoopingSelectorPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: LoopingSelectorPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorPanel> for super::super::UIElement { - fn from(value: &LoopingSelectorPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&LoopingSelectorPanel> for super::super::DependencyObject { - fn from(value: &LoopingSelectorPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorPanel {} -unsafe impl ::core::marker::Sync for LoopingSelectorPanel {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MenuFlyoutItemTemplateSettings(pub ::windows::core::IInspectable); -impl MenuFlyoutItemTemplateSettings { - pub fn KeyboardAcceleratorTextMinWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for MenuFlyoutItemTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.MenuFlyoutItemTemplateSettings;{56ad1809-3a16-4147-81cb-d0b35c834e0f})"); -} -unsafe impl ::windows::core::Interface for MenuFlyoutItemTemplateSettings { - type Vtable = IMenuFlyoutItemTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56ad1809_3a16_4147_81cb_d0b35c834e0f); -} -impl ::windows::core::RuntimeName for MenuFlyoutItemTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.MenuFlyoutItemTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MenuFlyoutItemTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&MenuFlyoutItemTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &MenuFlyoutItemTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuFlyoutItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuFlyoutItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuFlyoutItemTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&MenuFlyoutItemTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &MenuFlyoutItemTemplateSettings) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuFlyoutItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuFlyoutItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuFlyoutItemTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MenuFlyoutItemTemplateSettings> for super::super::DependencyObject { - fn from(value: &MenuFlyoutItemTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuFlyoutItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuFlyoutItemTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for MenuFlyoutItemTemplateSettings {} -unsafe impl ::core::marker::Sync for MenuFlyoutItemTemplateSettings {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct MenuFlyoutPresenterTemplateSettings(pub ::windows::core::IInspectable); -impl MenuFlyoutPresenterTemplateSettings { - pub fn FlyoutContentMinWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for MenuFlyoutPresenterTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.MenuFlyoutPresenterTemplateSettings;{d68fd00d-629d-4349-ac51-b877c80983b8})"); -} -unsafe impl ::windows::core::Interface for MenuFlyoutPresenterTemplateSettings { - type Vtable = IMenuFlyoutPresenterTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd68fd00d_629d_4349_ac51_b877c80983b8); -} -impl ::windows::core::RuntimeName for MenuFlyoutPresenterTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.MenuFlyoutPresenterTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MenuFlyoutPresenterTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&MenuFlyoutPresenterTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &MenuFlyoutPresenterTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuFlyoutPresenterTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuFlyoutPresenterTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuFlyoutPresenterTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&MenuFlyoutPresenterTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &MenuFlyoutPresenterTemplateSettings) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuFlyoutPresenterTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuFlyoutPresenterTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuFlyoutPresenterTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&MenuFlyoutPresenterTemplateSettings> for super::super::DependencyObject { - fn from(value: &MenuFlyoutPresenterTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuFlyoutPresenterTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuFlyoutPresenterTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for MenuFlyoutPresenterTemplateSettings {} -unsafe impl ::core::marker::Sync for MenuFlyoutPresenterTemplateSettings {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct NavigationViewItemPresenter(pub ::windows::core::IInspectable); -impl NavigationViewItemPresenter { - pub fn Icon(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIcon<'a, Param0: ::windows::core::IntoParam<'a, super::IconElement>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IconProperty() -> ::windows::core::Result { - Self::INavigationViewItemPresenterStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn new() -> ::windows::core::Result { - Self::INavigationViewItemPresenterFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn INavigationViewItemPresenterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn INavigationViewItemPresenterFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for NavigationViewItemPresenter { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.NavigationViewItemPresenter;{9956d3fc-4693-59cb-b6bf-37249058be96})"); -} -unsafe impl ::windows::core::Interface for NavigationViewItemPresenter { - type Vtable = INavigationViewItemPresenter_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9956d3fc_4693_59cb_b6bf_37249058be96); -} -impl ::windows::core::RuntimeName for NavigationViewItemPresenter { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.NavigationViewItemPresenter"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: NavigationViewItemPresenter) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&NavigationViewItemPresenter> for ::windows::core::IUnknown { - fn from(value: &NavigationViewItemPresenter) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: NavigationViewItemPresenter) -> Self { - value.0 - } -} -impl ::core::convert::From<&NavigationViewItemPresenter> for ::windows::core::IInspectable { - fn from(value: &NavigationViewItemPresenter) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: NavigationViewItemPresenter) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&NavigationViewItemPresenter> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &NavigationViewItemPresenter) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: NavigationViewItemPresenter) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&NavigationViewItemPresenter> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &NavigationViewItemPresenter) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: NavigationViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&NavigationViewItemPresenter> for super::ContentControl { - fn from(value: &NavigationViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Control { - fn from(value: NavigationViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&NavigationViewItemPresenter> for super::Control { - fn from(value: &NavigationViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: NavigationViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&NavigationViewItemPresenter> for super::super::FrameworkElement { - fn from(value: &NavigationViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: NavigationViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&NavigationViewItemPresenter> for super::super::UIElement { - fn from(value: &NavigationViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: NavigationViewItemPresenter) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&NavigationViewItemPresenter> for super::super::DependencyObject { - fn from(value: &NavigationViewItemPresenter) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &NavigationViewItemPresenter { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for NavigationViewItemPresenter {} -unsafe impl ::core::marker::Sync for NavigationViewItemPresenter {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct OrientedVirtualizingPanel(pub ::windows::core::IInspectable); -impl OrientedVirtualizingPanel { - pub fn CanVerticallyScroll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanVerticallyScroll(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CanHorizontallyScroll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanHorizontallyScroll(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ExtentWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ExtentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ViewportWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ViewportHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn HorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn VerticalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ScrollOwner(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetScrollOwner<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn LineUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this)).ok() } - } - pub fn LineDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this)).ok() } - } - pub fn LineLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this)).ok() } - } - pub fn LineRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this)).ok() } - } - pub fn PageUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this)).ok() } - } - pub fn PageDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this)).ok() } - } - pub fn PageLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this)).ok() } - } - pub fn PageRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this)).ok() } - } - pub fn MouseWheelUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - pub fn MouseWheelDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this)).ok() } - } - pub fn MouseWheelLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this)).ok() } - } - pub fn MouseWheelRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this)).ok() } - } - pub fn SetHorizontalOffset(&self, offset: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), offset).ok() } - } - pub fn SetVerticalOffset(&self, offset: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), offset).ok() } - } - #[cfg(feature = "Foundation")] - pub fn MakeVisible<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, visual: Param0, rectangle: Param1) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), visual.into_param().abi(), rectangle.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) - } - } - pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn GetInsertionIndexes<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, position: Param0, first: &mut i32, second: &mut i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), position.into_param().abi(), first, second).ok() } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsItemsHost(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ChildrenTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetChildrenTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ItemContainerGenerator(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AddInternalChild<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, child: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), child.into_param().abi()).ok() } - } - pub fn InsertInternalChild<'a, Param1: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, index: i32, child: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), index, child.into_param().abi()).ok() } - } - pub fn RemoveInternalChildRange(&self, index: i32, range: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), index, range).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::BrushTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for OrientedVirtualizingPanel { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.OrientedVirtualizingPanel;{f077b577-39bd-46ee-bdd7-0826beed71b8})"); -} -unsafe impl ::windows::core::Interface for OrientedVirtualizingPanel { - type Vtable = IOrientedVirtualizingPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf077b577_39bd_46ee_bdd7_0826beed71b8); -} -impl ::windows::core::RuntimeName for OrientedVirtualizingPanel { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.OrientedVirtualizingPanel"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: OrientedVirtualizingPanel) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&OrientedVirtualizingPanel> for ::windows::core::IUnknown { - fn from(value: &OrientedVirtualizingPanel) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: OrientedVirtualizingPanel) -> Self { - value.0 - } -} -impl ::core::convert::From<&OrientedVirtualizingPanel> for ::windows::core::IInspectable { - fn from(value: &OrientedVirtualizingPanel) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::TryFrom for IScrollSnapPointsInfo { - type Error = ::windows::core::Error; - fn try_from(value: OrientedVirtualizingPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&OrientedVirtualizingPanel> for IScrollSnapPointsInfo { - type Error = ::windows::core::Error; - fn try_from(value: &OrientedVirtualizingPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for &OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::TryFrom for super::IInsertionPanel { - type Error = ::windows::core::Error; - fn try_from(value: OrientedVirtualizingPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&OrientedVirtualizingPanel> for super::IInsertionPanel { - type Error = ::windows::core::Error; - fn try_from(value: &OrientedVirtualizingPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::IInsertionPanel> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::IInsertionPanel> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::IInsertionPanel> for &OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::IInsertionPanel> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: OrientedVirtualizingPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&OrientedVirtualizingPanel> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &OrientedVirtualizingPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: OrientedVirtualizingPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&OrientedVirtualizingPanel> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &OrientedVirtualizingPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::VirtualizingPanel { - fn from(value: OrientedVirtualizingPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&OrientedVirtualizingPanel> for super::VirtualizingPanel { - fn from(value: &OrientedVirtualizingPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::VirtualizingPanel> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::VirtualizingPanel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::VirtualizingPanel> for &OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::VirtualizingPanel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Panel { - fn from(value: OrientedVirtualizingPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&OrientedVirtualizingPanel> for super::Panel { - fn from(value: &OrientedVirtualizingPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: OrientedVirtualizingPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&OrientedVirtualizingPanel> for super::super::FrameworkElement { - fn from(value: &OrientedVirtualizingPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: OrientedVirtualizingPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&OrientedVirtualizingPanel> for super::super::UIElement { - fn from(value: &OrientedVirtualizingPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: OrientedVirtualizingPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&OrientedVirtualizingPanel> for super::super::DependencyObject { - fn from(value: &OrientedVirtualizingPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &OrientedVirtualizingPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for OrientedVirtualizingPanel {} -unsafe impl ::core::marker::Sync for OrientedVirtualizingPanel {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PickerFlyoutBase(pub ::windows::core::IInspectable); -impl PickerFlyoutBase { - pub fn TitleProperty() -> ::windows::core::Result { - Self::IPickerFlyoutBaseStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IPickerFlyoutBaseStatics(|this| unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - }) - } - pub fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IPickerFlyoutBaseStatics(|this| unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - pub fn Placement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: FlyoutPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPlacement(&self, value: FlyoutPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Opened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveOpened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Closed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveClosed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Opening<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveOpening<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ShowAt<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(&self, placementtarget: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), placementtarget.into_param().abi()).ok() } - } - pub fn Hide(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this)).ok() } - } - pub fn Target(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LightDismissOverlayMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::LightDismissOverlayMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLightDismissOverlayMode(&self, value: super::LightDismissOverlayMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Closing<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveClosing<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn OverlayInputPassThroughElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOverlayInputPassThroughElement<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn ShowMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: FlyoutShowMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetShowMode(&self, value: FlyoutShowMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn InputDevicePrefersPrimaryCommands(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AreOpenCloseAnimationsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAreOpenCloseAnimationsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsOpen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ShowAt2<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, FlyoutShowOptions>>(&self, placementtarget: Param0, showoptions: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), placementtarget.into_param().abi(), showoptions.into_param().abi()).ok() } - } - pub fn ShouldConstrainToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetShouldConstrainToRootBounds(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsConstrainedToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IPickerFlyoutBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for PickerFlyoutBase { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.PickerFlyoutBase;{e33574ea-1076-44d1-9383-dc24ac5cff2a})"); -} -unsafe impl ::windows::core::Interface for PickerFlyoutBase { - type Vtable = IPickerFlyoutBase_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe33574ea_1076_44d1_9383_dc24ac5cff2a); -} -impl ::windows::core::RuntimeName for PickerFlyoutBase { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.PickerFlyoutBase"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PickerFlyoutBase) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&PickerFlyoutBase> for ::windows::core::IUnknown { - fn from(value: &PickerFlyoutBase) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PickerFlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PickerFlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PickerFlyoutBase) -> Self { - value.0 - } -} -impl ::core::convert::From<&PickerFlyoutBase> for ::windows::core::IInspectable { - fn from(value: &PickerFlyoutBase) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PickerFlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PickerFlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for FlyoutBase { - fn from(value: PickerFlyoutBase) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PickerFlyoutBase> for FlyoutBase { - fn from(value: &PickerFlyoutBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FlyoutBase> for PickerFlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, FlyoutBase> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, FlyoutBase> for &PickerFlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, FlyoutBase> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PickerFlyoutBase) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PickerFlyoutBase> for super::super::DependencyObject { - fn from(value: &PickerFlyoutBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PickerFlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PickerFlyoutBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for PickerFlyoutBase {} -unsafe impl ::core::marker::Sync for PickerFlyoutBase {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PivotHeaderItem(pub ::windows::core::IInspectable); -impl PivotHeaderItem { - pub fn new() -> ::windows::core::Result { - Self::IPivotHeaderItemFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IPivotHeaderItemFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for PivotHeaderItem { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.PivotHeaderItem;{594572c2-82aa-410b-9e55-fd8e2c98862d})"); -} -unsafe impl ::windows::core::Interface for PivotHeaderItem { - type Vtable = IPivotHeaderItem_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x594572c2_82aa_410b_9e55_fd8e2c98862d); -} -impl ::windows::core::RuntimeName for PivotHeaderItem { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.PivotHeaderItem"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PivotHeaderItem) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&PivotHeaderItem> for ::windows::core::IUnknown { - fn from(value: &PivotHeaderItem) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotHeaderItem) -> Self { - value.0 - } -} -impl ::core::convert::From<&PivotHeaderItem> for ::windows::core::IInspectable { - fn from(value: &PivotHeaderItem) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: PivotHeaderItem) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&PivotHeaderItem> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &PivotHeaderItem) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: PivotHeaderItem) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&PivotHeaderItem> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &PivotHeaderItem) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: PivotHeaderItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderItem> for super::ContentControl { - fn from(value: &PivotHeaderItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Control { - fn from(value: PivotHeaderItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderItem> for super::Control { - fn from(value: &PivotHeaderItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: PivotHeaderItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderItem> for super::super::FrameworkElement { - fn from(value: &PivotHeaderItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: PivotHeaderItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderItem> for super::super::UIElement { - fn from(value: &PivotHeaderItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotHeaderItem) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderItem> for super::super::DependencyObject { - fn from(value: &PivotHeaderItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotHeaderItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for PivotHeaderItem {} -unsafe impl ::core::marker::Sync for PivotHeaderItem {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PivotHeaderPanel(pub ::windows::core::IInspectable); -impl PivotHeaderPanel { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsItemsHost(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ChildrenTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetChildrenTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::BrushTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for PivotHeaderPanel { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.PivotHeaderPanel;{21484ebc-9241-4203-bd37-6c08fb096612})"); -} -unsafe impl ::windows::core::Interface for PivotHeaderPanel { - type Vtable = IPivotHeaderPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x21484ebc_9241_4203_bd37_6c08fb096612); -} -impl ::windows::core::RuntimeName for PivotHeaderPanel { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.PivotHeaderPanel"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PivotHeaderPanel) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&PivotHeaderPanel> for ::windows::core::IUnknown { - fn from(value: &PivotHeaderPanel) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotHeaderPanel) -> Self { - value.0 - } -} -impl ::core::convert::From<&PivotHeaderPanel> for ::windows::core::IInspectable { - fn from(value: &PivotHeaderPanel) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: PivotHeaderPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&PivotHeaderPanel> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &PivotHeaderPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: PivotHeaderPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&PivotHeaderPanel> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &PivotHeaderPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::Canvas { - fn from(value: PivotHeaderPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderPanel> for super::Canvas { - fn from(value: &PivotHeaderPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Canvas> for PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Canvas> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Canvas> for &PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Canvas> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Panel { - fn from(value: PivotHeaderPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderPanel> for super::Panel { - fn from(value: &PivotHeaderPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: PivotHeaderPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderPanel> for super::super::FrameworkElement { - fn from(value: &PivotHeaderPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: PivotHeaderPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderPanel> for super::super::UIElement { - fn from(value: &PivotHeaderPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotHeaderPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotHeaderPanel> for super::super::DependencyObject { - fn from(value: &PivotHeaderPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotHeaderPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for PivotHeaderPanel {} -unsafe impl ::core::marker::Sync for PivotHeaderPanel {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct PivotPanel(pub ::windows::core::IInspectable); -impl PivotPanel { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) - } - } - pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsItemsHost(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ChildrenTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetChildrenTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::BrushTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for PivotPanel { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.PivotPanel;{ad4ebe80-22a9-4ca3-9212-2773b6359ff3})"); -} -unsafe impl ::windows::core::Interface for PivotPanel { - type Vtable = IPivotPanel_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad4ebe80_22a9_4ca3_9212_2773b6359ff3); -} -impl ::windows::core::RuntimeName for PivotPanel { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.PivotPanel"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: PivotPanel) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&PivotPanel> for ::windows::core::IUnknown { - fn from(value: &PivotPanel) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotPanel) -> Self { - value.0 - } -} -impl ::core::convert::From<&PivotPanel> for ::windows::core::IInspectable { - fn from(value: &PivotPanel) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::TryFrom for IScrollSnapPointsInfo { - type Error = ::windows::core::Error; - fn try_from(value: PivotPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&PivotPanel> for IScrollSnapPointsInfo { - type Error = ::windows::core::Error; - fn try_from(value: &PivotPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for &PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: PivotPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&PivotPanel> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &PivotPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: PivotPanel) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&PivotPanel> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &PivotPanel) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::Panel { - fn from(value: PivotPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotPanel> for super::Panel { - fn from(value: &PivotPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: PivotPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotPanel> for super::super::FrameworkElement { - fn from(value: &PivotPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: PivotPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotPanel> for super::super::UIElement { - fn from(value: &PivotPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotPanel) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&PivotPanel> for super::super::DependencyObject { - fn from(value: &PivotPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for PivotPanel {} -unsafe impl ::core::marker::Sync for PivotPanel {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct PlacementMode(pub i32); -impl PlacementMode { - pub const Bottom: PlacementMode = PlacementMode(2i32); - pub const Left: PlacementMode = PlacementMode(9i32); - pub const Mouse: PlacementMode = PlacementMode(7i32); - pub const Right: PlacementMode = PlacementMode(4i32); - pub const Top: PlacementMode = PlacementMode(10i32); -} -impl ::core::convert::From for PlacementMode { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for PlacementMode { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for PlacementMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.PlacementMode;i4)"); -} -impl ::windows::core::DefaultType for PlacementMode { - type DefaultType = Self; -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct Popup(pub ::windows::core::IInspectable); -impl Popup { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn Child(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetChild<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsOpen(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsOpen(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ChildTransitions(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetChildTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsLightDismissEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsLightDismissEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Opened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveOpened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Closed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveClosed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ChildProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn IsOpenProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn HorizontalOffsetProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn VerticalOffsetProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ChildTransitionsProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn IsLightDismissEnabledProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn LightDismissOverlayMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::LightDismissOverlayMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLightDismissOverlayMode(&self, value: super::LightDismissOverlayMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LightDismissOverlayModeProperty() -> ::windows::core::Result { - Self::IPopupStatics2(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ShouldConstrainToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetShouldConstrainToRootBounds(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsConstrainedToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ShouldConstrainToRootBoundsProperty() -> ::windows::core::Result { - Self::IPopupStatics3(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn PlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn DesiredPlacement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: PopupPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetDesiredPlacement(&self, value: PopupPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ActualPlacement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: PopupPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualPlacementChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualPlacementChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn PlacementTargetProperty() -> ::windows::core::Result { - Self::IPopupStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn DesiredPlacementProperty() -> ::windows::core::Result { - Self::IPopupStatics4(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IPopupStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IPopupStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IPopupStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn IPopupStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for Popup { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.Popup;{62418240-e6d3-4705-a1dc-39156456ee29})"); -} -unsafe impl ::windows::core::Interface for Popup { - type Vtable = IPopup_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62418240_e6d3_4705_a1dc_39156456ee29); -} -impl ::windows::core::RuntimeName for Popup { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.Popup"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: Popup) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&Popup> for ::windows::core::IUnknown { - fn from(value: &Popup) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for Popup { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a Popup { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: Popup) -> Self { - value.0 - } -} -impl ::core::convert::From<&Popup> for ::windows::core::IInspectable { - fn from(value: &Popup) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for Popup { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a Popup { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: Popup) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&Popup> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &Popup) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: Popup) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&Popup> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &Popup) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: Popup) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&Popup> for super::super::FrameworkElement { - fn from(value: &Popup) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: Popup) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&Popup> for super::super::UIElement { - fn from(value: &Popup) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: Popup) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&Popup> for super::super::DependencyObject { - fn from(value: &Popup) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &Popup { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for Popup {} -unsafe impl ::core::marker::Sync for Popup {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct PopupPlacementMode(pub i32); -impl PopupPlacementMode { - pub const Auto: PopupPlacementMode = PopupPlacementMode(0i32); - pub const Top: PopupPlacementMode = PopupPlacementMode(1i32); - pub const Bottom: PopupPlacementMode = PopupPlacementMode(2i32); - pub const Left: PopupPlacementMode = PopupPlacementMode(3i32); - pub const Right: PopupPlacementMode = PopupPlacementMode(4i32); - pub const TopEdgeAlignedLeft: PopupPlacementMode = PopupPlacementMode(5i32); - pub const TopEdgeAlignedRight: PopupPlacementMode = PopupPlacementMode(6i32); - pub const BottomEdgeAlignedLeft: PopupPlacementMode = PopupPlacementMode(7i32); - pub const BottomEdgeAlignedRight: PopupPlacementMode = PopupPlacementMode(8i32); - pub const LeftEdgeAlignedTop: PopupPlacementMode = PopupPlacementMode(9i32); - pub const LeftEdgeAlignedBottom: PopupPlacementMode = PopupPlacementMode(10i32); - pub const RightEdgeAlignedTop: PopupPlacementMode = PopupPlacementMode(11i32); - pub const RightEdgeAlignedBottom: PopupPlacementMode = PopupPlacementMode(12i32); -} -impl ::core::convert::From for PopupPlacementMode { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for PopupPlacementMode { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for PopupPlacementMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.PopupPlacementMode;i4)"); -} -impl ::windows::core::DefaultType for PopupPlacementMode { - type DefaultType = Self; -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ProgressBarTemplateSettings(pub ::windows::core::IInspectable); -impl ProgressBarTemplateSettings { - pub fn EllipseDiameter(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn EllipseOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn EllipseAnimationWellPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn EllipseAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ContainerAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ContainerAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IndicatorLengthDelta(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for ProgressBarTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ProgressBarTemplateSettings;{3fe2ea2a-e3f2-4c2b-9488-918d77d2bbe4})"); -} -unsafe impl ::windows::core::Interface for ProgressBarTemplateSettings { - type Vtable = IProgressBarTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3fe2ea2a_e3f2_4c2b_9488_918d77d2bbe4); -} -impl ::windows::core::RuntimeName for ProgressBarTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ProgressBarTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ProgressBarTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ProgressBarTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ProgressBarTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ProgressBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ProgressBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ProgressBarTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&ProgressBarTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ProgressBarTemplateSettings) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ProgressBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ProgressBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ProgressBarTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ProgressBarTemplateSettings> for super::super::DependencyObject { - fn from(value: &ProgressBarTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ProgressBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ProgressBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ProgressBarTemplateSettings {} -unsafe impl ::core::marker::Sync for ProgressBarTemplateSettings {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ProgressRingTemplateSettings(pub ::windows::core::IInspectable); -impl ProgressRingTemplateSettings { - pub fn EllipseDiameter(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn EllipseOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn MaxSideLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for ProgressRingTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ProgressRingTemplateSettings;{b9b675ec-c723-42e6-83e9-9826272bdc0e})"); -} -unsafe impl ::windows::core::Interface for ProgressRingTemplateSettings { - type Vtable = IProgressRingTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9b675ec_c723_42e6_83e9_9826272bdc0e); -} -impl ::windows::core::RuntimeName for ProgressRingTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ProgressRingTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ProgressRingTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ProgressRingTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ProgressRingTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ProgressRingTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ProgressRingTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ProgressRingTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&ProgressRingTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ProgressRingTemplateSettings) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ProgressRingTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ProgressRingTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ProgressRingTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ProgressRingTemplateSettings> for super::super::DependencyObject { - fn from(value: &ProgressRingTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ProgressRingTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ProgressRingTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ProgressRingTemplateSettings {} -unsafe impl ::core::marker::Sync for ProgressRingTemplateSettings {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RangeBase(pub ::windows::core::IInspectable); -impl RangeBase { - pub fn Minimum(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinimum(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Maximum(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaximum(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSmallChange(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLargeChange(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Value(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetValue(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ValueChanged<'a, Param0: ::windows::core::IntoParam<'a, RangeBaseValueChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveValueChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn MinimumProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn MaximumProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SmallChangeProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn LargeChangeProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ValueProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue2<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IRangeBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for RangeBase { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.RangeBase;{fa002c1a-494e-46cf-91d4-e14a8d798675})"); -} -unsafe impl ::windows::core::Interface for RangeBase { - type Vtable = IRangeBase_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798675); -} -impl ::windows::core::RuntimeName for RangeBase { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.RangeBase"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RangeBase) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&RangeBase> for ::windows::core::IUnknown { - fn from(value: &RangeBase) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RangeBase) -> Self { - value.0 - } -} -impl ::core::convert::From<&RangeBase> for ::windows::core::IInspectable { - fn from(value: &RangeBase) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: RangeBase) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&RangeBase> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &RangeBase) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: RangeBase) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&RangeBase> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &RangeBase) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::Control { - fn from(value: RangeBase) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RangeBase> for super::Control { - fn from(value: &RangeBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: RangeBase) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RangeBase> for super::super::FrameworkElement { - fn from(value: &RangeBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: RangeBase) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RangeBase> for super::super::UIElement { - fn from(value: &RangeBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RangeBase) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RangeBase> for super::super::DependencyObject { - fn from(value: &RangeBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RangeBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for RangeBase {} -unsafe impl ::core::marker::Sync for RangeBase {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RangeBaseValueChangedEventArgs(pub ::windows::core::IInspectable); -impl RangeBaseValueChangedEventArgs { - pub fn OldValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn NewValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OriginalSource(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for RangeBaseValueChangedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs;{a1921777-d5c1-4f9c-a7b0-0401b7e6dc5c})"); -} -unsafe impl ::windows::core::Interface for RangeBaseValueChangedEventArgs { - type Vtable = IRangeBaseValueChangedEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa1921777_d5c1_4f9c_a7b0_0401b7e6dc5c); -} -impl ::windows::core::RuntimeName for RangeBaseValueChangedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RangeBaseValueChangedEventArgs) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&RangeBaseValueChangedEventArgs> for ::windows::core::IUnknown { - fn from(value: &RangeBaseValueChangedEventArgs) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RangeBaseValueChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RangeBaseValueChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RangeBaseValueChangedEventArgs) -> Self { - value.0 - } -} -impl ::core::convert::From<&RangeBaseValueChangedEventArgs> for ::windows::core::IInspectable { - fn from(value: &RangeBaseValueChangedEventArgs) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RangeBaseValueChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RangeBaseValueChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: RangeBaseValueChangedEventArgs) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RangeBaseValueChangedEventArgs> for super::super::RoutedEventArgs { - fn from(value: &RangeBaseValueChangedEventArgs) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for RangeBaseValueChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &RangeBaseValueChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for RangeBaseValueChangedEventArgs {} -unsafe impl ::core::marker::Sync for RangeBaseValueChangedEventArgs {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RangeBaseValueChangedEventHandler(::windows::core::IUnknown); -impl RangeBaseValueChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { - let com = RangeBaseValueChangedEventHandler_box:: { - vtable: &RangeBaseValueChangedEventHandler_box::::VTABLE, - count: ::windows::core::RefCount::new(1), - invoke, - }; - unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, RangeBaseValueChangedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for RangeBaseValueChangedEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({e3906fd9-4d1b-4ac8-a43c-c3b908742799})"); -} -unsafe impl ::windows::core::Interface for RangeBaseValueChangedEventHandler { - type Vtable = RangeBaseValueChangedEventHandler_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3906fd9_4d1b_4ac8_a43c_c3b908742799); -} -#[repr(C)] -#[doc(hidden)] -pub struct RangeBaseValueChangedEventHandler_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(C)] -struct RangeBaseValueChangedEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { - vtable: *const RangeBaseValueChangedEventHandler_abi, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> RangeBaseValueChangedEventHandler_box { - const VTABLE: RangeBaseValueChangedEventHandler_abi = RangeBaseValueChangedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); - unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { - &mut (*this).vtable as *mut _ as _ - } else { - ::core::ptr::null_mut() - }; - if (*interface).is_null() { - ::windows::core::HRESULT(0x8000_4002) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - let remaining = (*this).count.release(); - if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); - } - remaining - } - unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - ((*this).invoke)( - &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), - &*(&e as *const ::Abi as *const ::DefaultType), - ) - .into() - } -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct RepeatButton(pub ::windows::core::IInspectable); -impl RepeatButton { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn Delay(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetDelay(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Interval(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetInterval(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DelayProperty() -> ::windows::core::Result { - Self::IRepeatButtonStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn IntervalProperty() -> ::windows::core::Result { - Self::IRepeatButtonStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn ClickMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ClickMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetClickMode(&self, value: super::ClickMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsPointerOver(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn IsPressed(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn Command(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetCommand<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ICommand>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CommandParameter(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetCommandParameter<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Click<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveClick<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IRepeatButtonStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for RepeatButton { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.RepeatButton;{02200df9-021a-484a-a93b-0f31020314e5})"); -} -unsafe impl ::windows::core::Interface for RepeatButton { - type Vtable = IRepeatButton_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02200df9_021a_484a_a93b_0f31020314e5); -} -impl ::windows::core::RuntimeName for RepeatButton { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.RepeatButton"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RepeatButton) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&RepeatButton> for ::windows::core::IUnknown { - fn from(value: &RepeatButton) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RepeatButton) -> Self { - value.0 - } -} -impl ::core::convert::From<&RepeatButton> for ::windows::core::IInspectable { - fn from(value: &RepeatButton) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: RepeatButton) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&RepeatButton> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &RepeatButton) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: RepeatButton) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&RepeatButton> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &RepeatButton) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for ButtonBase { - fn from(value: RepeatButton) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RepeatButton> for ButtonBase { - fn from(value: &RepeatButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBase> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBase> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBase> for &RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBase> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: RepeatButton) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RepeatButton> for super::ContentControl { - fn from(value: &RepeatButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Control { - fn from(value: RepeatButton) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RepeatButton> for super::Control { - fn from(value: &RepeatButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: RepeatButton) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RepeatButton> for super::super::FrameworkElement { - fn from(value: &RepeatButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: RepeatButton) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RepeatButton> for super::super::UIElement { - fn from(value: &RepeatButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RepeatButton) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&RepeatButton> for super::super::DependencyObject { - fn from(value: &RepeatButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RepeatButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for RepeatButton {} -unsafe impl ::core::marker::Sync for RepeatButton {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ScrollBar(pub ::windows::core::IInspectable); -impl ScrollBar { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn Orientation(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::Orientation = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOrientation(&self, value: super::Orientation) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ViewportSize(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetViewportSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IndicatorMode(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ScrollingIndicatorMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIndicatorMode(&self, value: ScrollingIndicatorMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Scroll<'a, Param0: ::windows::core::IntoParam<'a, ScrollEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveScroll<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn OrientationProperty() -> ::windows::core::Result { - Self::IScrollBarStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn ViewportSizeProperty() -> ::windows::core::Result { - Self::IScrollBarStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn IndicatorModeProperty() -> ::windows::core::Result { - Self::IScrollBarStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn Minimum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinimum(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Maximum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaximum(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSmallChange(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetLargeChange(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Value(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetValue2(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ValueChanged<'a, Param0: ::windows::core::IntoParam<'a, RangeBaseValueChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveValueChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IScrollBarStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for ScrollBar { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ScrollBar;{f57ae6ca-d1a6-4b90-a4e9-54df1ba8d2ec})"); -} -unsafe impl ::windows::core::Interface for ScrollBar { - type Vtable = IScrollBar_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf57ae6ca_d1a6_4b90_a4e9_54df1ba8d2ec); -} -impl ::windows::core::RuntimeName for ScrollBar { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ScrollBar"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ScrollBar) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ScrollBar> for ::windows::core::IUnknown { - fn from(value: &ScrollBar) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ScrollBar) -> Self { - value.0 - } -} -impl ::core::convert::From<&ScrollBar> for ::windows::core::IInspectable { - fn from(value: &ScrollBar) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: ScrollBar) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ScrollBar> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &ScrollBar) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: ScrollBar) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ScrollBar> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &ScrollBar) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for RangeBase { - fn from(value: ScrollBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ScrollBar> for RangeBase { - fn from(value: &ScrollBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, RangeBase> for ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, RangeBase> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, RangeBase> for &ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, RangeBase> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Control { - fn from(value: ScrollBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ScrollBar> for super::Control { - fn from(value: &ScrollBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ScrollBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ScrollBar> for super::super::FrameworkElement { - fn from(value: &ScrollBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ScrollBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ScrollBar> for super::super::UIElement { - fn from(value: &ScrollBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ScrollBar) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ScrollBar> for super::super::DependencyObject { - fn from(value: &ScrollBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ScrollBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ScrollBar {} -unsafe impl ::core::marker::Sync for ScrollBar {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ScrollEventArgs(pub ::windows::core::IInspectable); -impl ScrollEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - pub fn NewValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ScrollEventType(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ScrollEventType = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn OriginalSource(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } -} -unsafe impl ::windows::core::RuntimeType for ScrollEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ScrollEventArgs;{c57e5168-3afe-448d-b752-2f364c75d743})"); -} -unsafe impl ::windows::core::Interface for ScrollEventArgs { - type Vtable = IScrollEventArgs_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc57e5168_3afe_448d_b752_2f364c75d743); -} -impl ::windows::core::RuntimeName for ScrollEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ScrollEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ScrollEventArgs) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&ScrollEventArgs> for ::windows::core::IUnknown { - fn from(value: &ScrollEventArgs) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ScrollEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ScrollEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ScrollEventArgs) -> Self { - value.0 - } -} -impl ::core::convert::From<&ScrollEventArgs> for ::windows::core::IInspectable { - fn from(value: &ScrollEventArgs) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ScrollEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ScrollEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: ScrollEventArgs) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&ScrollEventArgs> for super::super::RoutedEventArgs { - fn from(value: &ScrollEventArgs) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for ScrollEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &ScrollEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for ScrollEventArgs {} -unsafe impl ::core::marker::Sync for ScrollEventArgs {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ScrollEventHandler(::windows::core::IUnknown); -impl ScrollEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { - let com = ScrollEventHandler_box:: { - vtable: &ScrollEventHandler_box::::VTABLE, - count: ::windows::core::RefCount::new(1), - invoke, - }; - unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ScrollEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for ScrollEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({8860b0a4-a383-4c83-b306-a1c39d7db87f})"); -} -unsafe impl ::windows::core::Interface for ScrollEventHandler { - type Vtable = ScrollEventHandler_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8860b0a4_a383_4c83_b306_a1c39d7db87f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ScrollEventHandler_abi( - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, - pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, -); -#[repr(C)] -struct ScrollEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { - vtable: *const ScrollEventHandler_abi, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ScrollEventHandler_box { - const VTABLE: ScrollEventHandler_abi = ScrollEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); - unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { - &mut (*this).vtable as *mut _ as _ - } else { - ::core::ptr::null_mut() - }; - if (*interface).is_null() { - ::windows::core::HRESULT(0x8000_4002) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - let remaining = (*this).count.release(); - if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); - } - remaining - } - unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { - let this = this as *mut ::windows::core::RawPtr as *mut Self; - ((*this).invoke)( - &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), - &*(&e as *const ::Abi as *const ::DefaultType), - ) - .into() - } -} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct ScrollEventType(pub i32); -impl ScrollEventType { - pub const SmallDecrement: ScrollEventType = ScrollEventType(0i32); - pub const SmallIncrement: ScrollEventType = ScrollEventType(1i32); - pub const LargeDecrement: ScrollEventType = ScrollEventType(2i32); - pub const LargeIncrement: ScrollEventType = ScrollEventType(3i32); - pub const ThumbPosition: ScrollEventType = ScrollEventType(4i32); - pub const ThumbTrack: ScrollEventType = ScrollEventType(5i32); - pub const First: ScrollEventType = ScrollEventType(6i32); - pub const Last: ScrollEventType = ScrollEventType(7i32); - pub const EndScroll: ScrollEventType = ScrollEventType(8i32); -} -impl ::core::convert::From for ScrollEventType { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for ScrollEventType { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for ScrollEventType { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ScrollEventType;i4)"); -} -impl ::windows::core::DefaultType for ScrollEventType { - type DefaultType = Self; -} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct ScrollingIndicatorMode(pub i32); -impl ScrollingIndicatorMode { - pub const None: ScrollingIndicatorMode = ScrollingIndicatorMode(0i32); - pub const TouchIndicator: ScrollingIndicatorMode = ScrollingIndicatorMode(1i32); - pub const MouseIndicator: ScrollingIndicatorMode = ScrollingIndicatorMode(2i32); -} -impl ::core::convert::From for ScrollingIndicatorMode { - fn from(value: i32) -> Self { - Self(value) - } -} -unsafe impl ::windows::core::Abi for ScrollingIndicatorMode { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for ScrollingIndicatorMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ScrollingIndicatorMode;i4)"); -} -impl ::windows::core::DefaultType for ScrollingIndicatorMode { - type DefaultType = Self; -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct Selector(pub ::windows::core::IInspectable); -impl Selector { - pub fn SelectedIndex(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetSelectedIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn SelectedItem(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetSelectedItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectedValue(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetSelectedValue<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn SelectedValuePath(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetSelectedValuePath<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn IsSynchronizedWithCurrentItem(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetIsSynchronizedWithCurrentItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SelectionChanged<'a, Param0: ::windows::core::IntoParam<'a, super::SelectionChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSelectionChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn SelectedIndexProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedItemProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedValueProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn SelectedValuePathProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn IsSynchronizedWithCurrentItemProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetIsSelectionActive<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn ItemFromContainer<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, container: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), container.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn ContainerFromItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, item: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), item.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn IndexFromContainer<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, container: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), container.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn ContainerFromIndex(&self, index: i32) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), index, &mut result__).from_abi::(result__) - } - } - pub fn ItemsSource(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetItemsSource<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ItemTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetItemTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ItemTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetItemTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ItemsPanel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetItemsPanel<'a, Param0: ::windows::core::IntoParam<'a, super::ItemsPanelTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn DisplayMemberPath(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetDisplayMemberPath<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ItemContainerStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetItemContainerStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ItemContainerStyleSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetItemContainerStyleSelector<'a, Param0: ::windows::core::IntoParam<'a, super::StyleSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ItemContainerGenerator(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ItemContainerTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetItemContainerTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn GroupStyle(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - pub fn GroupStyleSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetGroupStyleSelector<'a, Param0: ::windows::core::IntoParam<'a, super::GroupStyleSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsGrouping(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ItemsPanelRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn GroupHeaderContainerFromItemContainer<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, itemcontainer: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), itemcontainer.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } - } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } - } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } - } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ISelectorStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } -} -unsafe impl ::windows::core::RuntimeType for Selector { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.Selector;{e30eb3a5-b36b-42dc-8527-cd25136c083c})"); -} -unsafe impl ::windows::core::Interface for Selector { - type Vtable = ISelector_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe30eb3a5_b36b_42dc_8527_cd25136c083c); -} -impl ::windows::core::RuntimeName for Selector { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.Selector"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: Selector) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&Selector> for ::windows::core::IUnknown { - fn from(value: &Selector) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a Selector { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: Selector) -> Self { - value.0 - } -} -impl ::core::convert::From<&Selector> for ::windows::core::IInspectable { - fn from(value: &Selector) -> Self { - value.0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a Selector { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) - } -} -impl ::core::convert::TryFrom for super::IItemContainerMapping { - type Error = ::windows::core::Error; - fn try_from(value: Selector) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&Selector> for super::IItemContainerMapping { - type Error = ::windows::core::Error; - fn try_from(value: &Selector) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::IItemContainerMapping> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::IItemContainerMapping> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::IItemContainerMapping> for &Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::IItemContainerMapping> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: Selector) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&Selector> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &Selector) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: Selector) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&Selector> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &Selector) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::convert::From for super::ItemsControl { - fn from(value: Selector) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&Selector> for super::ItemsControl { - fn from(value: &Selector) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ItemsControl> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::ItemsControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ItemsControl> for &Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::ItemsControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::Control { - fn from(value: Selector) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&Selector> for super::Control { - fn from(value: &Selector) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: Selector) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&Selector> for super::super::FrameworkElement { - fn from(value: &Selector) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: Selector) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&Selector> for super::super::UIElement { - fn from(value: &Selector) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: Selector) -> Self { - ::core::convert::Into::::into(&value) - } -} -impl ::core::convert::From<&Selector> for super::super::DependencyObject { - fn from(value: &Selector) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &Selector { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) - } -} -unsafe impl ::core::marker::Send for Selector {} -unsafe impl ::core::marker::Sync for Selector {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct SelectorItem(pub ::windows::core::IInspectable); -impl SelectorItem { - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsSelected(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsSelectedProperty() -> ::windows::core::Result { - Self::ISelectorItemStatics(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } - } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } - } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } - } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } - } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ContentTemplateRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } - } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::windows::core::Abi for GroupHeaderPlacement { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for GroupHeaderPlacement { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.GroupHeaderPlacement;i4)"); +} +impl ::windows::core::DefaultType for GroupHeaderPlacement { + type DefaultType = Self; +} +#[repr(transparent)] +#[doc(hidden)] +pub struct IAppBarButtonTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarButtonTemplateSettings { + type Vtable = IAppBarButtonTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcbc9b39d_0c95_4951_bff2_13963691c366); +} +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarButtonTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAppBarTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarTemplateSettings { + type Vtable = IAppBarTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcc2a863_eb35_423c_8389_d7827be3bf67); +} +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAppBarTemplateSettings2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarTemplateSettings2 { + type Vtable = IAppBarTemplateSettings2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcbe66259_0399_5bcc_b925_4d5f5c9a4568); +} +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarTemplateSettings2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IAppBarToggleButtonTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IAppBarToggleButtonTemplateSettings { + type Vtable = IAppBarToggleButtonTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaaf99c48_d8f4_40d9_9fa3_3a64f0fec5d8); +} +#[repr(C)] +#[doc(hidden)] +pub struct IAppBarToggleButtonTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IButtonBase(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IButtonBase { + type Vtable = IButtonBase_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798674); +} +#[repr(C)] +#[doc(hidden)] +pub struct IButtonBase_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::ClickMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::ClickMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Input")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Input"))] usize, + #[cfg(feature = "UI_Xaml_Input")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Input"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IButtonBaseFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IButtonBaseFactory { + type Vtable = IButtonBaseFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x389b7c71_5220_42b2_9992_2690c1a6702f); +} +#[repr(C)] +#[doc(hidden)] +pub struct IButtonBaseFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IButtonBaseStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IButtonBaseStatics { + type Vtable = IButtonBaseStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ef17e1_fe37_474f_9e97_3b5e0b30f2df); +} +#[repr(C)] +#[doc(hidden)] +pub struct IButtonBaseStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICalendarPanel(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICalendarPanel { + type Vtable = ICalendarPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfcd55a2d_02d3_4ee6_9a90_9df3ead00994); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICalendarPanel_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICalendarViewTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICalendarViewTemplateSettings { + type Vtable = ICalendarViewTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56c71483_64e1_477c_8a0b_cb2f3334b9b0); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICalendarViewTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICarouselPanel(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICarouselPanel { + type Vtable = ICarouselPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdeab78b2_373b_4151_8785_e544d0d9362b); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICarouselPanel_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, offset: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, offset: f64) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, visual: ::windows::core::RawPtr, rectangle: super::super::super::super::Foundation::Rect, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICarouselPanelFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICarouselPanelFactory { + type Vtable = ICarouselPanelFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc1109404_9ae1_440e_a0dd_bbb6e2293cbe); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICarouselPanelFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorPickerSlider(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorPickerSlider { + type Vtable = IColorPickerSlider_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94394d83_e0df_4c5f_bbcd_8155f4020440); +} +#[repr(C)] +#[doc(hidden)] +pub struct IColorPickerSlider_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::ColorPickerHsvChannel) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::ColorPickerHsvChannel) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorPickerSliderFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorPickerSliderFactory { + type Vtable = IColorPickerSliderFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x06d879a2_8c07_4b1e_a940_9fbce8f49639); +} +#[repr(C)] +#[doc(hidden)] +pub struct IColorPickerSliderFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorPickerSliderStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorPickerSliderStatics { + type Vtable = IColorPickerSliderStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x22eafc6a_9fe3_4eee_8734_a1398ec4413a); +} +#[repr(C)] +#[doc(hidden)] +pub struct IColorPickerSliderStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorSpectrum(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorSpectrum { + type Vtable = IColorSpectrum_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce46f271_f509_4f98_8288_e4942fb385df); +} +#[repr(C)] +#[doc(hidden)] +pub struct IColorSpectrum_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::super::Color) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation_Numerics")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Numerics::Vector4) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Numerics"))] usize, + #[cfg(feature = "Foundation_Numerics")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::super::super::Foundation::Numerics::Vector4) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Numerics"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::ColorSpectrumShape) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::ColorSpectrumShape) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::ColorSpectrumComponents) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::ColorSpectrumComponents) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorSpectrumFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorSpectrumFactory { + type Vtable = IColorSpectrumFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90c7e61e_904d_42ab_b44f_e68dbf0cdee9); +} +#[repr(C)] +#[doc(hidden)] +pub struct IColorSpectrumFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IColorSpectrumStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IColorSpectrumStatics { + type Vtable = IColorSpectrumStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x906bee7c_2cee_4e90_968b_f0a5bd691b4a); +} +#[repr(C)] +#[doc(hidden)] +pub struct IColorSpectrumStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IComboBoxTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IComboBoxTemplateSettings { + type Vtable = IComboBoxTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x83285c4e_17f6_4aa3_b61b_e87c718604ea); +} +#[repr(C)] +#[doc(hidden)] +pub struct IComboBoxTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut AnimationDirection) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IComboBoxTemplateSettings2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IComboBoxTemplateSettings2 { + type Vtable = IComboBoxTemplateSettings2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00e90cd7_68be_449d_b5a7_76e26f703e9b); +} +#[repr(C)] +#[doc(hidden)] +pub struct IComboBoxTemplateSettings2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICommandBarFlyoutCommandBar(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICommandBarFlyoutCommandBar { + type Vtable = ICommandBarFlyoutCommandBar_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14146e7c_38c4_55c4_b706_ce18f6061e7e); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICommandBarFlyoutCommandBar_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICommandBarFlyoutCommandBarFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICommandBarFlyoutCommandBarFactory { + type Vtable = ICommandBarFlyoutCommandBarFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf8236f9f_5559_5697_8e6f_20d70ca17dd0); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICommandBarFlyoutCommandBarFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICommandBarFlyoutCommandBarTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICommandBarFlyoutCommandBarTemplateSettings { + type Vtable = ICommandBarFlyoutCommandBarTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47642c44_26ff_5d14_9cfc_77dc64f3a447); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICommandBarFlyoutCommandBarTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICommandBarTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings { + type Vtable = ICommandBarTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61c8f92c_05aa_414a_a2ae_482c5a46c08e); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICommandBarTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICommandBarTemplateSettings2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings2 { + type Vtable = ICommandBarTemplateSettings2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfbb24f93_c2e2_4177_a2b6_3cd705073cf6); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICommandBarTemplateSettings2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICommandBarTemplateSettings3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings3 { + type Vtable = ICommandBarTemplateSettings3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3bd71eba_3403_4bfe_842d_2ce8c511d245); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICommandBarTemplateSettings3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Visibility) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ICommandBarTemplateSettings4(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings4 { + type Vtable = ICommandBarTemplateSettings4_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf2562dd3_aa58_59c5_853b_828a19d1214e); +} +#[repr(C)] +#[doc(hidden)] +pub struct ICommandBarTemplateSettings4_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IDragCompletedEventArgs(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IDragCompletedEventArgs { + type Vtable = IDragCompletedEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb04f29a1_bd16_48f6_a511_9c2763641331); +} +#[repr(C)] +#[doc(hidden)] +pub struct IDragCompletedEventArgs_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IDragCompletedEventArgsFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IDragCompletedEventArgsFactory { + type Vtable = IDragCompletedEventArgsFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36a7d99d_148c_495f_a0fc_afc871d62f33); +} +#[repr(C)] +#[doc(hidden)] +pub struct IDragCompletedEventArgsFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, horizontalchange: f64, verticalchange: f64, canceled: bool, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IDragDeltaEventArgs(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IDragDeltaEventArgs { + type Vtable = IDragDeltaEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c2dd73c_2806_49fc_aae9_6d792b572b6a); +} +#[repr(C)] +#[doc(hidden)] +pub struct IDragDeltaEventArgs_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IDragDeltaEventArgsFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IDragDeltaEventArgsFactory { + type Vtable = IDragDeltaEventArgsFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x46e7a1ef_ae15_44a6_8a04_95b0bf9ab876); +} +#[repr(C)] +#[doc(hidden)] +pub struct IDragDeltaEventArgsFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, horizontalchange: f64, verticalchange: f64, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IDragStartedEventArgs(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IDragStartedEventArgs { + type Vtable = IDragStartedEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9f915dd0_a124_4366_bd85_2408214aeed4); +} +#[repr(C)] +#[doc(hidden)] +pub struct IDragStartedEventArgs_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IDragStartedEventArgsFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IDragStartedEventArgsFactory { + type Vtable = IDragStartedEventArgsFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5eefe579_c706_4781_a308_c9e7f4c6a1d7); +} +#[repr(C)] +#[doc(hidden)] +pub struct IDragStartedEventArgsFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, horizontaloffset: f64, verticaloffset: f64, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBase(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBase { + type Vtable = IFlyoutBase_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x723eea0b_d12e_430d_a9f0_9bb32bbf9913); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBase_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut FlyoutPlacementMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: FlyoutPlacementMode) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, placementtarget: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBase2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBase2 { + type Vtable = IFlyoutBase2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf82b435e_65b3_41c6_a9e2_77b67bc4c00c); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBase2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::LightDismissOverlayMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::LightDismissOverlayMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::ElementSoundMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::ElementSoundMode) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBase3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBase3 { + type Vtable = IFlyoutBase3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa89c9712_48e0_4240_95b9_0dfd0826a8d3); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBase3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBase4(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBase4 { + type Vtable = IFlyoutBase4_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3897d69_a37f_4828_9b70_0ef67c03b5f8); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBase4_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Input")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, args: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Input"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBase5(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBase5 { + type Vtable = IFlyoutBase5_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad3ec0c7_12bb_5a73_b78e_105192ca73d6); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBase5_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut FlyoutShowMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: FlyoutShowMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, placementtarget: ::windows::core::RawPtr, showoptions: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBase6(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBase6 { + type Vtable = IFlyoutBase6_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5399de8c_06cc_5b52_b65a_ff9322d1c940); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBase6_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBaseClosingEventArgs(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBaseClosingEventArgs { + type Vtable = IFlyoutBaseClosingEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd075852d_b09a_4fd1_b005_db2ba01206fb); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBaseClosingEventArgs_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBaseFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBaseFactory { + type Vtable = IFlyoutBaseFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c3363d7_fca7_407e_920e_70e15e9f0bf1); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBaseFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBaseOverrides(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBaseOverrides { + type Vtable = IFlyoutBaseOverrides_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x101dec86_6f4d_45a4_9d0e_3ece6f16977e); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBaseOverrides_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBaseOverrides4(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBaseOverrides4 { + type Vtable = IFlyoutBaseOverrides4_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa6bfd04d_5ff3_4418_add8_4042a88d2da5); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBaseOverrides4_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Input")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, args: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Input"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBaseStatics { + type Vtable = IFlyoutBaseStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe2d795e3_85c0_4de2_bac1_5294ca011a78); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, flyoutowner: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBaseStatics2 { + type Vtable = IFlyoutBaseStatics2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa8e913fe_2d60_4307_aad9_56b450121b58); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBaseStatics3 { + type Vtable = IFlyoutBaseStatics3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ba92e4f_dd16_4be4_99db_bd9d4406c0f8); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics5(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBaseStatics5 { + type Vtable = IFlyoutBaseStatics5_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69edb25c_992a_542b_bcff_2f7f855523bd); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics5_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics6(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutBaseStatics6 { + type Vtable = IFlyoutBaseStatics6_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96d49254_c91b_5246_8b39_afc2a2c50cf8); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutBaseStatics6_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutShowOptions(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutShowOptions { + type Vtable = IFlyoutShowOptions_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x57d693ad_0c74_54dd_b110_1ee43fabadd9); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutShowOptions_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut FlyoutShowMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: FlyoutShowMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut FlyoutPlacementMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: FlyoutPlacementMode) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IFlyoutShowOptionsFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IFlyoutShowOptionsFactory { + type Vtable = IFlyoutShowOptionsFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce596f61_2eb4_5b4e_af69_f9af42320eee); +} +#[repr(C)] +#[doc(hidden)] +pub struct IFlyoutShowOptionsFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGeneratorPositionHelper(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGeneratorPositionHelper { + type Vtable = IGeneratorPositionHelper_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd40318d_7745_40d9_ab9d_abbda4a7ffea); +} +#[repr(C)] +#[doc(hidden)] +pub struct IGeneratorPositionHelper_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGeneratorPositionHelperStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGeneratorPositionHelperStatics { + type Vtable = IGeneratorPositionHelperStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad4095cd_60ec_4588_8d60_39d29097a4df); +} +#[repr(C)] +#[doc(hidden)] +pub struct IGeneratorPositionHelperStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, index: i32, offset: i32, result__: *mut GeneratorPosition) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewItemPresenter(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewItemPresenter { + type Vtable = IGridViewItemPresenter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x214f9010_56e2_4821_8a1c_2305709af94b); +} +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewItemPresenter_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::HorizontalAlignment) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::HorizontalAlignment) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::VerticalAlignment) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::VerticalAlignment) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewItemPresenterFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewItemPresenterFactory { + type Vtable = IGridViewItemPresenterFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x53c12178_63bb_4a65_a3f1_ab114cfc6ffe); +} +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewItemPresenterFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewItemPresenterStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewItemPresenterStatics { + type Vtable = IGridViewItemPresenterStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe958f8c4_277e_4a72_a01e_9e1688980178); +} +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewItemPresenterStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IGridViewItemTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IGridViewItemTemplateSettings { + type Vtable = IGridViewItemTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9e30baaf_165d_4267_a45e_1a43a75706ac); +} +#[repr(C)] +#[doc(hidden)] +pub struct IGridViewItemTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IItemsChangedEventArgs(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IItemsChangedEventArgs { + type Vtable = IItemsChangedEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b45568_7d10_421e_be29_81839a91de20); +} +#[repr(C)] +#[doc(hidden)] +pub struct IItemsChangedEventArgs_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut GeneratorPosition) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut GeneratorPosition) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IJumpListItemBackgroundConverter(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IJumpListItemBackgroundConverter { + type Vtable = IJumpListItemBackgroundConverter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x81177858_d224_410c_b16c_c5b6bb6188b2); +} +#[repr(C)] +#[doc(hidden)] +pub struct IJumpListItemBackgroundConverter_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IJumpListItemBackgroundConverterStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IJumpListItemBackgroundConverterStatics { + type Vtable = IJumpListItemBackgroundConverterStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20e7c3dd_6f27_4808_b0be_83e0e9b5cc45); +} +#[repr(C)] +#[doc(hidden)] +pub struct IJumpListItemBackgroundConverterStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IJumpListItemForegroundConverter(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IJumpListItemForegroundConverter { + type Vtable = IJumpListItemForegroundConverter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1590ed38_c504_4796_a63a_5bfc9eefaae8); +} +#[repr(C)] +#[doc(hidden)] +pub struct IJumpListItemForegroundConverter_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IJumpListItemForegroundConverterStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IJumpListItemForegroundConverterStatics { + type Vtable = IJumpListItemForegroundConverterStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x474e7352_210c_4673_ac6a_413f0e2c7750); +} +#[repr(C)] +#[doc(hidden)] +pub struct IJumpListItemForegroundConverterStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILayoutInformation(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILayoutInformation { + type Vtable = ILayoutInformation_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb5384c9b_c8cf_41b3_bf16_18c8420e72c9); +} +#[repr(C)] +#[doc(hidden)] +pub struct ILayoutInformation_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILayoutInformationStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILayoutInformationStatics { + type Vtable = ILayoutInformationStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcf06cf99_58e9_4682_8326_50caab65ed7c); +} +#[repr(C)] +#[doc(hidden)] +pub struct ILayoutInformationStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, dispatcher: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILayoutInformationStatics2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILayoutInformationStatics2 { + type Vtable = ILayoutInformationStatics2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x760315b5_6d4e_4939_ac61_639863cea36b); +} +#[repr(C)] +#[doc(hidden)] +pub struct ILayoutInformationStatics2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::Size) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemPresenter(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemPresenter { + type Vtable = IListViewItemPresenter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfc8946bd_a3a2_4969_8174_25b5d3c28033); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemPresenter_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::HorizontalAlignment) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::HorizontalAlignment) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::VerticalAlignment) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::VerticalAlignment) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemPresenter2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemPresenter2 { + type Vtable = IListViewItemPresenter2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf5dc5496_e122_4c57_a625_ac4b08fb2d4c); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemPresenter2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ListViewItemPresenterCheckMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ListViewItemPresenterCheckMode) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemPresenter3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemPresenter3 { + type Vtable = IListViewItemPresenter3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36620013_0390_4e30_ad97_8744404f7010); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemPresenter3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemPresenter4(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemPresenter4 { + type Vtable = IListViewItemPresenter4_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda600ac1_adea_5940_a18f_57582f96d99a); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemPresenter4_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::CornerRadius) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::CornerRadius) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::CornerRadius) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::super::CornerRadius) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ListViewItemPresenterSelectionIndicatorMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ListViewItemPresenterSelectionIndicatorMode) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemPresenterFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemPresenterFactory { + type Vtable = IListViewItemPresenterFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe0777cfd_f7e4_4a67_9ac0_a994fcacd020); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemPresenterFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemPresenterStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics { + type Vtable = IListViewItemPresenterStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6504a55a_15dd_42fb_aa5d_2d8ce2e9c294); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemPresenterStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemPresenterStatics2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics2 { + type Vtable = IListViewItemPresenterStatics2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4cb3b945_d24d_42a3_9e83_a86d0618bf1b); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemPresenterStatics2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemPresenterStatics3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics3 { + type Vtable = IListViewItemPresenterStatics3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc3d3d11e_fa26_4ce7_a4ed_ff948f01b7c0); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemPresenterStatics3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemPresenterStatics4(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics4 { + type Vtable = IListViewItemPresenterStatics4_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3917159e_74a1_5e7e_a743_e45be9fb919b); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemPresenterStatics4_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IListViewItemTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IListViewItemTemplateSettings { + type Vtable = IListViewItemTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67af84bf_8279_4686_9326_cd189f27575d); +} +#[repr(C)] +#[doc(hidden)] +pub struct IListViewItemTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILoopingSelector(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILoopingSelector { + type Vtable = ILoopingSelector_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4c9a3e04_4827_49d9_8806_093957b0fd21); +} +#[repr(C)] +#[doc(hidden)] +pub struct ILoopingSelector_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILoopingSelectorItem(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILoopingSelectorItem { + type Vtable = ILoopingSelectorItem_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69714b9_27c6_4433_9d7c_0dbfb2f4344f); +} +#[repr(C)] +#[doc(hidden)] +pub struct ILoopingSelectorItem_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILoopingSelectorPanel(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILoopingSelectorPanel { + type Vtable = ILoopingSelectorPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40a9ba70_1011_4778_87f7_6bfd20d6377d); +} +#[repr(C)] +#[doc(hidden)] +pub struct ILoopingSelectorPanel_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ILoopingSelectorStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ILoopingSelectorStatics { + type Vtable = ILoopingSelectorStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03e8bafa_8c7d_4fc5_b92a_f049fb933cc5); +} +#[repr(C)] +#[doc(hidden)] +pub struct ILoopingSelectorStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMenuFlyoutItemTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuFlyoutItemTemplateSettings { + type Vtable = IMenuFlyoutItemTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56ad1809_3a16_4147_81cb_d0b35c834e0f); +} +#[repr(C)] +#[doc(hidden)] +pub struct IMenuFlyoutItemTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IMenuFlyoutPresenterTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IMenuFlyoutPresenterTemplateSettings { + type Vtable = IMenuFlyoutPresenterTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd68fd00d_629d_4349_ac51_b877c80983b8); +} +#[repr(C)] +#[doc(hidden)] +pub struct IMenuFlyoutPresenterTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct INavigationViewItemPresenter(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for INavigationViewItemPresenter { + type Vtable = INavigationViewItemPresenter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9956d3fc_4693_59cb_b6bf_37249058be96); +} +#[repr(C)] +#[doc(hidden)] +pub struct INavigationViewItemPresenter_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct INavigationViewItemPresenterFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for INavigationViewItemPresenterFactory { + type Vtable = INavigationViewItemPresenterFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbb062c50_4a36_52e7_9459_e89d02f3fc42); +} +#[repr(C)] +#[doc(hidden)] +pub struct INavigationViewItemPresenterFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct INavigationViewItemPresenterStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for INavigationViewItemPresenterStatics { + type Vtable = INavigationViewItemPresenterStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x52814604_cfc1_5ad5_a3aa_fa355be6bd76); +} +#[repr(C)] +#[doc(hidden)] +pub struct INavigationViewItemPresenterStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IOrientedVirtualizingPanel(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IOrientedVirtualizingPanel { + type Vtable = IOrientedVirtualizingPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf077b577_39bd_46ee_bdd7_0826beed71b8); +} +#[repr(C)] +#[doc(hidden)] +pub struct IOrientedVirtualizingPanel_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, offset: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, offset: f64) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, visual: ::windows::core::RawPtr, rectangle: super::super::super::super::Foundation::Rect, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IOrientedVirtualizingPanelFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IOrientedVirtualizingPanelFactory { + type Vtable = IOrientedVirtualizingPanelFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b8eaeaf_f92f_439d_9ebf_e9919f56c94d); +} +#[repr(C)] +#[doc(hidden)] +pub struct IOrientedVirtualizingPanelFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPickerFlyoutBase(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPickerFlyoutBase { + type Vtable = IPickerFlyoutBase_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe33574ea_1076_44d1_9383_dc24ac5cff2a); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPickerFlyoutBase_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPickerFlyoutBaseFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPickerFlyoutBaseFactory { + type Vtable = IPickerFlyoutBaseFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ec27a53_9502_4beb_b342_00566c8f16b0); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPickerFlyoutBaseFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPickerFlyoutBaseOverrides(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPickerFlyoutBaseOverrides { + type Vtable = IPickerFlyoutBaseOverrides_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5bfc4f4a_4822_47b4_a958_77c20ba120d3); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPickerFlyoutBaseOverrides_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPickerFlyoutBaseStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPickerFlyoutBaseStatics { + type Vtable = IPickerFlyoutBaseStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5a4d0ac5_89ae_40e5_a7f1_bb702355adf3); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPickerFlyoutBaseStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotHeaderItem(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotHeaderItem { + type Vtable = IPivotHeaderItem_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x594572c2_82aa_410b_9e55_fd8e2c98862d); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPivotHeaderItem_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotHeaderItemFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotHeaderItemFactory { + type Vtable = IPivotHeaderItemFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14308b37_185b_4117_bc77_dda2eb261b99); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPivotHeaderItemFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotHeaderPanel(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotHeaderPanel { + type Vtable = IPivotHeaderPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x21484ebc_9241_4203_bd37_6c08fb096612); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPivotHeaderPanel_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPivotPanel(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPivotPanel { + type Vtable = IPivotPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad4ebe80_22a9_4ca3_9212_2773b6359ff3); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPivotPanel_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPopup(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPopup { + type Vtable = IPopup_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62418240_e6d3_4705_a1dc_39156456ee29); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPopup_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation")))] usize, + #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation")))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPopup2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPopup2 { + type Vtable = IPopup2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x376a8c4c_aac0_4b20_966a_0b9364feb4b5); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPopup2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::LightDismissOverlayMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::LightDismissOverlayMode) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPopup3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPopup3 { + type Vtable = IPopup3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf9c46915_a65c_5f68_9f54_310a1b51095f); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPopup3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPopup4(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPopup4 { + type Vtable = IPopup4_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1870b836_df2f_5fc6_a5f2_748ed6ce7321); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPopup4_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut PopupPlacementMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: PopupPlacementMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut PopupPlacementMode) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPopupStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPopupStatics { + type Vtable = IPopupStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5ae3bf1a_6e34_40d6_8a7f_ca822aaf59e3); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPopupStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPopupStatics2(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPopupStatics2 { + type Vtable = IPopupStatics2_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2b9ae9ec_55ef_43b6_b459_12e40ffa4302); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPopupStatics2_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPopupStatics3(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPopupStatics3 { + type Vtable = IPopupStatics3_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00789589_c580_558f_945a_7d02ee004d3e); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPopupStatics3_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IPopupStatics4(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IPopupStatics4 { + type Vtable = IPopupStatics4_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd1a42c06_8bfa_5164_8554_48bfe6bd4cc6); +} +#[repr(C)] +#[doc(hidden)] +pub struct IPopupStatics4_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IProgressBarTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IProgressBarTemplateSettings { + type Vtable = IProgressBarTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3fe2ea2a_e3f2_4c2b_9488_918d77d2bbe4); +} +#[repr(C)] +#[doc(hidden)] +pub struct IProgressBarTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IProgressRingTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IProgressRingTemplateSettings { + type Vtable = IProgressRingTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9b675ec_c723_42e6_83e9_9826272bdc0e); +} +#[repr(C)] +#[doc(hidden)] +pub struct IProgressRingTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRangeBase(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRangeBase { + type Vtable = IRangeBase_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798675); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRangeBase_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRangeBaseFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRangeBaseFactory { + type Vtable = IRangeBaseFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x389b7c71_5220_42b2_9992_2690c1a67030); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRangeBaseFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRangeBaseOverrides(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRangeBaseOverrides { + type Vtable = IRangeBaseOverrides_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4291af39_7f0b_4bc2_99c4_06e7062682d8); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRangeBaseOverrides_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, oldminimum: f64, newminimum: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, oldmaximum: f64, newmaximum: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, oldvalue: f64, newvalue: f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRangeBaseStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRangeBaseStatics { + type Vtable = IRangeBaseStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ef17e1_fe37_474f_9e97_3b5e0b30f2e0); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRangeBaseStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRangeBaseValueChangedEventArgs(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRangeBaseValueChangedEventArgs { + type Vtable = IRangeBaseValueChangedEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa1921777_d5c1_4f9c_a7b0_0401b7e6dc5c); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRangeBaseValueChangedEventArgs_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRepeatButton(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRepeatButton { + type Vtable = IRepeatButton_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02200df9_021a_484a_a93b_0f31020314e5); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRepeatButton_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IRepeatButtonStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IRepeatButtonStatics { + type Vtable = IRepeatButtonStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3914ac4e_f462_4f73_8197_e8846639c682); +} +#[repr(C)] +#[doc(hidden)] +pub struct IRepeatButtonStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IScrollBar(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IScrollBar { + type Vtable = IScrollBar_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf57ae6ca_d1a6_4b90_a4e9_54df1ba8d2ec); +} +#[repr(C)] +#[doc(hidden)] +pub struct IScrollBar_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::Orientation) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: super::Orientation) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ScrollingIndicatorMode) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ScrollingIndicatorMode) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IScrollBarStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IScrollBarStatics { + type Vtable = IScrollBarStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x45eaf38d_b814_48cf_97f2_539eb16dfd4d); +} +#[repr(C)] +#[doc(hidden)] +pub struct IScrollBarStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IScrollEventArgs(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IScrollEventArgs { + type Vtable = IScrollEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc57e5168_3afe_448d_b752_2f364c75d743); +} +#[repr(C)] +#[doc(hidden)] +pub struct IScrollEventArgs_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ScrollEventType) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct IScrollSnapPointsInfo(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IScrollSnapPointsInfo { + type Vtable = IScrollSnapPointsInfo_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1b5d1336_e61b_4d51_be41_fd8ddc55c58c); +} +impl IScrollSnapPointsInfo { + pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation_Collections")] + pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) } } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) } } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for IScrollSnapPointsInfo { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{1b5d1336-e61b-4d51-be41-fd8ddc55c58c}"); +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: IScrollSnapPointsInfo) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&IScrollSnapPointsInfo> for ::windows::core::IUnknown { + fn from(value: &IScrollSnapPointsInfo) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IScrollSnapPointsInfo { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IScrollSnapPointsInfo { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: IScrollSnapPointsInfo) -> Self { + value.0 } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&IScrollSnapPointsInfo> for ::windows::core::IInspectable { + fn from(value: &IScrollSnapPointsInfo) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IScrollSnapPointsInfo { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IScrollSnapPointsInfo { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +#[repr(C)] +#[doc(hidden)] +pub struct IScrollSnapPointsInfo_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation_Collections")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, orientation: super::Orientation, alignment: SnapPointsAlignment, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation_Collections"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: *mut f32, result__: *mut f32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelector(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelector { + type Vtable = ISelector_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe30eb3a5_b36b_42dc_8527_cd25136c083c); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISelector_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelectorFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelectorFactory { + type Vtable = ISelectorFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9be2995_d136_4600_b187_8ad56079b48a); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISelectorFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelectorItem(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelectorItem { + type Vtable = ISelectorItem_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x541c8d6c_0283_4581_b945_2a64c28a0646); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISelectorItem_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelectorItemFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelectorItemFactory { + type Vtable = ISelectorItemFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9363945_c86a_4b1e_9440_1879378d5313); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISelectorItemFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelectorItemStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelectorItemStatics { + type Vtable = ISelectorItemStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a353ab8_cbe9_4303_92e7_c8906e218392); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISelectorItemStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISelectorStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISelectorStatics { + type Vtable = ISelectorStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x13300b06_bd10_4e09_bff7_71efb8bbb42b); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISelectorStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, element: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISettingsFlyoutTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISettingsFlyoutTemplateSettings { + type Vtable = ISettingsFlyoutTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcf14c10_cea7_43f1_9d68_57605ded69d4); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISettingsFlyoutTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation")))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ISplitViewTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ISplitViewTemplateSettings { + type Vtable = ISplitViewTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc16ab5a7_4996_4443_b199_6b6b89124eab); +} +#[repr(C)] +#[doc(hidden)] +pub struct ISplitViewTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::GridLength) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut super::super::GridLength) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IThumb(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IThumb { + type Vtable = IThumb_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b2b281_0d6a_45cf_b333_2402b037f099); +} +#[repr(C)] +#[doc(hidden)] +pub struct IThumb_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IThumbStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IThumbStatics { + type Vtable = IThumbStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x955024eb_36f3_4672_a186_baaf626ac4ad); +} +#[repr(C)] +#[doc(hidden)] +pub struct IThumbStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITickBar(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITickBar { + type Vtable = ITickBar_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x994683fa_f1f6_487d_a5ac_c15921bfa995); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITickBar_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, + #[cfg(feature = "UI_Xaml_Media")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "UI_Xaml_Media"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct ITickBarStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for ITickBarStatics { + type Vtable = ITickBarStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c6d7e40_799d_4a54_be09_1fefc61d018e); +} +#[repr(C)] +#[doc(hidden)] +pub struct ITickBarStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleButton(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleButton { + type Vtable = IToggleButton_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x589877fb_0fc7_4036_9d8b_127dfa75c16d); +} +#[repr(C)] +#[doc(hidden)] +pub struct IToggleButton_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: ::windows::core::RawPtr) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut bool) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: bool) -> ::windows::core::HRESULT, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, handler: ::windows::core::RawPtr, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, + #[cfg(feature = "Foundation")] pub unsafe extern "system" fn(this: ::windows::core::RawPtr, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Foundation"))] usize, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleButtonFactory(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleButtonFactory { + type Vtable = IToggleButtonFactory_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd56aa2fc_fc7f_449c_9855_7a1055d668a8); +} +#[repr(C)] +#[doc(hidden)] +pub struct IToggleButtonFactory_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, baseinterface: ::windows::core::RawPtr, innerinterface: *mut ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleButtonOverrides(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleButtonOverrides { + type Vtable = IToggleButtonOverrides_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd20e4c28_f18b_491a_9a45_f1a04a9369a4); +} +#[repr(C)] +#[doc(hidden)] +pub struct IToggleButtonOverrides_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleButtonStatics(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleButtonStatics { + type Vtable = IToggleButtonStatics_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaf1eab12_0128_4f67_9c5a_82320c445d19); +} +#[repr(C)] +#[doc(hidden)] +pub struct IToggleButtonStatics_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToggleSwitchTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToggleSwitchTemplateSettings { + type Vtable = IToggleSwitchTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02b7bdcd_628a_4363_86e0_51d6e2e89e58); +} +#[repr(C)] +#[doc(hidden)] +pub struct IToggleSwitchTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[doc(hidden)] +pub struct IToolTipTemplateSettings(pub ::windows::core::IInspectable); +unsafe impl ::windows::core::Interface for IToolTipTemplateSettings { + type Vtable = IToolTipTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd4388247_0ec4_4506_affd_afac2225b48c); +} +#[repr(C)] +#[doc(hidden)] +pub struct IToolTipTemplateSettings_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, count: *mut u32, values: *mut *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, value: *mut i32) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, result__: *mut f64) -> ::windows::core::HRESULT, +); +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ItemsChangedEventArgs(pub ::windows::core::IInspectable); +impl ItemsChangedEventArgs { + pub fn Action(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Position(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: GeneratorPosition = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OldPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: GeneratorPosition = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ItemCount(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ItemUICount(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ItemsChangedEventArgs { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ItemsChangedEventArgs;{e8b45568-7d10-421e-be29-81839a91de20})"); +} +unsafe impl ::windows::core::Interface for ItemsChangedEventArgs { + type Vtable = IItemsChangedEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b45568_7d10_421e_be29_81839a91de20); +} +impl ::windows::core::RuntimeName for ItemsChangedEventArgs { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ItemsChangedEventArgs"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ItemsChangedEventArgs) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&ItemsChangedEventArgs> for ::windows::core::IUnknown { + fn from(value: &ItemsChangedEventArgs) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ItemsChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ItemsChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ItemsChangedEventArgs) -> Self { + value.0 } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&ItemsChangedEventArgs> for ::windows::core::IInspectable { + fn from(value: &ItemsChangedEventArgs) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ItemsChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ItemsChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for ItemsChangedEventArgs {} +unsafe impl ::core::marker::Sync for ItemsChangedEventArgs {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ItemsChangedEventHandler(::windows::core::IUnknown); +impl ItemsChangedEventHandler { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + let com = ItemsChangedEventHandler_box:: { + vtable: &ItemsChangedEventHandler_box::::VTABLE, + count: ::windows::core::RefCount::new(1), + invoke, + }; + unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ItemsChangedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) +} +unsafe impl ::windows::core::RuntimeType for ItemsChangedEventHandler { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({178257be-a304-482f-8bf0-b9d2e39612a3})"); +} +unsafe impl ::windows::core::Interface for ItemsChangedEventHandler { + type Vtable = ItemsChangedEventHandler_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x178257be_a304_482f_8bf0_b9d2e39612a3); +} +#[repr(C)] +#[doc(hidden)] +pub struct ItemsChangedEventHandler_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(C)] +struct ItemsChangedEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { + vtable: *const ItemsChangedEventHandler_abi, + invoke: F, + count: ::windows::core::RefCount, +} +impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ItemsChangedEventHandler_box { + const VTABLE: ItemsChangedEventHandler_abi = ItemsChangedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); + unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { + &mut (*this).vtable as *mut _ as _ + } else { + ::core::ptr::null_mut() + }; + if (*interface).is_null() { + ::windows::core::HRESULT(0x8000_4002) + } else { + (*this).count.add_ref(); + ::windows::core::HRESULT(0) } } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + (*this).count.add_ref() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + let remaining = (*this).count.release(); + if remaining == 0 { + ::windows::core::alloc::boxed::Box::from_raw(this); } + remaining } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + ((*this).invoke)( + &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), + &*(&e as *const ::Abi as *const ::DefaultType), + ) + .into() } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct JumpListItemBackgroundConverter(pub ::windows::core::IInspectable); +impl JumpListItemBackgroundConverter { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn Enabled(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetEnabled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn Disabled(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetDisabled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(all(feature = "UI_Xaml_Data", feature = "UI_Xaml_Interop"))] + pub fn Convert<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, super::super::Interop::TypeName>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0, targettype: Param1, parameter: Param2, language: Param3) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(all(feature = "UI_Xaml_Data", feature = "UI_Xaml_Interop"))] + pub fn ConvertBack<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, super::super::Interop::TypeName>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0, targettype: Param1, parameter: Param2, language: Param3) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn EnabledProperty() -> ::windows::core::Result { + Self::IJumpListItemBackgroundConverterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn DisabledProperty() -> ::windows::core::Result { + Self::IJumpListItemBackgroundConverterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn IJumpListItemBackgroundConverterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for JumpListItemBackgroundConverter { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.JumpListItemBackgroundConverter;{81177858-d224-410c-b16c-c5b6bb6188b2})"); +} +unsafe impl ::windows::core::Interface for JumpListItemBackgroundConverter { + type Vtable = IJumpListItemBackgroundConverter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x81177858_d224_410c_b16c_c5b6bb6188b2); +} +impl ::windows::core::RuntimeName for JumpListItemBackgroundConverter { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.JumpListItemBackgroundConverter"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: JumpListItemBackgroundConverter) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&JumpListItemBackgroundConverter> for ::windows::core::IUnknown { + fn from(value: &JumpListItemBackgroundConverter) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for JumpListItemBackgroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a JumpListItemBackgroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: JumpListItemBackgroundConverter) -> Self { + value.0 } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&JumpListItemBackgroundConverter> for ::windows::core::IInspectable { + fn from(value: &JumpListItemBackgroundConverter) -> Self { + value.0.clone() } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for JumpListItemBackgroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a JumpListItemBackgroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Xaml_Data")] +impl ::core::convert::TryFrom for super::super::Data::IValueConverter { + type Error = ::windows::core::Error; + fn try_from(value: JumpListItemBackgroundConverter) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Data")] +impl ::core::convert::TryFrom<&JumpListItemBackgroundConverter> for super::super::Data::IValueConverter { + type Error = ::windows::core::Error; + fn try_from(value: &JumpListItemBackgroundConverter) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Data")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Data::IValueConverter> for JumpListItemBackgroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Data::IValueConverter> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Data")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Data::IValueConverter> for &JumpListItemBackgroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Data::IValueConverter> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: JumpListItemBackgroundConverter) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&JumpListItemBackgroundConverter> for super::super::DependencyObject { + fn from(value: &JumpListItemBackgroundConverter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for JumpListItemBackgroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &JumpListItemBackgroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for JumpListItemBackgroundConverter {} +unsafe impl ::core::marker::Sync for JumpListItemBackgroundConverter {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct JumpListItemForegroundConverter(pub ::windows::core::IInspectable); +impl JumpListItemForegroundConverter { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn Enabled(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetEnabled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn Disabled(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetDisabled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(all(feature = "UI_Xaml_Data", feature = "UI_Xaml_Interop"))] + pub fn Convert<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, super::super::Interop::TypeName>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0, targettype: Param1, parameter: Param2, language: Param3) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(all(feature = "UI_Xaml_Data", feature = "UI_Xaml_Interop"))] + pub fn ConvertBack<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, super::super::Interop::TypeName>, Param2: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param3: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0, targettype: Param1, parameter: Param2, language: Param3) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn EnabledProperty() -> ::windows::core::Result { + Self::IJumpListItemForegroundConverterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn DisabledProperty() -> ::windows::core::Result { + Self::IJumpListItemForegroundConverterStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn IJumpListItemForegroundConverterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for JumpListItemForegroundConverter { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.JumpListItemForegroundConverter;{1590ed38-c504-4796-a63a-5bfc9eefaae8})"); +} +unsafe impl ::windows::core::Interface for JumpListItemForegroundConverter { + type Vtable = IJumpListItemForegroundConverter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1590ed38_c504_4796_a63a_5bfc9eefaae8); +} +impl ::windows::core::RuntimeName for JumpListItemForegroundConverter { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.JumpListItemForegroundConverter"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: JumpListItemForegroundConverter) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&JumpListItemForegroundConverter> for ::windows::core::IUnknown { + fn from(value: &JumpListItemForegroundConverter) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for JumpListItemForegroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a JumpListItemForegroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: JumpListItemForegroundConverter) -> Self { + value.0 } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&JumpListItemForegroundConverter> for ::windows::core::IInspectable { + fn from(value: &JumpListItemForegroundConverter) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for JumpListItemForegroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a JumpListItemForegroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Data")] +impl ::core::convert::TryFrom for super::super::Data::IValueConverter { + type Error = ::windows::core::Error; + fn try_from(value: JumpListItemForegroundConverter) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Xaml_Data")] +impl ::core::convert::TryFrom<&JumpListItemForegroundConverter> for super::super::Data::IValueConverter { + type Error = ::windows::core::Error; + fn try_from(value: &JumpListItemForegroundConverter) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Xaml_Data")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Data::IValueConverter> for JumpListItemForegroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Data::IValueConverter> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Xaml_Data")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Data::IValueConverter> for &JumpListItemForegroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Data::IValueConverter> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: JumpListItemForegroundConverter) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&JumpListItemForegroundConverter> for super::super::DependencyObject { + fn from(value: &JumpListItemForegroundConverter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for JumpListItemForegroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &JumpListItemForegroundConverter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { +} +unsafe impl ::core::marker::Send for JumpListItemForegroundConverter {} +unsafe impl ::core::marker::Sync for JumpListItemForegroundConverter {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct LayoutInformation(pub ::windows::core::IInspectable); +impl LayoutInformation { + pub fn GetLayoutExceptionElement<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(dispatcher: Param0) -> ::windows::core::Result { + Self::ILayoutInformationStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dispatcher.into_param().abi(), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "Foundation")] + pub fn GetLayoutSlot<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(element: Param0) -> ::windows::core::Result { + Self::ILayoutInformationStatics(|this| unsafe { + let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation")] + pub fn GetAvailableSize<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(element: Param0) -> ::windows::core::Result { + Self::ILayoutInformationStatics2(|this| unsafe { + let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) + }) } - pub fn ISelectorItemStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn ILayoutInformationStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } + pub fn ILayoutInformationStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for SelectorItem { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.SelectorItem;{541c8d6c-0283-4581-b945-2a64c28a0646})"); +unsafe impl ::windows::core::RuntimeType for LayoutInformation { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.LayoutInformation;{b5384c9b-c8cf-41b3-bf16-18c8420e72c9})"); } -unsafe impl ::windows::core::Interface for SelectorItem { - type Vtable = ISelectorItem_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x541c8d6c_0283_4581_b945_2a64c28a0646); +unsafe impl ::windows::core::Interface for LayoutInformation { + type Vtable = ILayoutInformation_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb5384c9b_c8cf_41b3_bf16_18c8420e72c9); } -impl ::windows::core::RuntimeName for SelectorItem { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.SelectorItem"; +impl ::windows::core::RuntimeName for LayoutInformation { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.LayoutInformation"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SelectorItem) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: LayoutInformation) -> Self { value.0 .0 } } -impl ::core::convert::From<&SelectorItem> for ::windows::core::IUnknown { - fn from(value: &SelectorItem) -> Self { +impl ::core::convert::From<&LayoutInformation> for ::windows::core::IUnknown { + fn from(value: &LayoutInformation) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectorItem { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LayoutInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectorItem { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LayoutInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SelectorItem) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: LayoutInformation) -> Self { value.0 } } -impl ::core::convert::From<&SelectorItem> for ::windows::core::IInspectable { - fn from(value: &SelectorItem) -> Self { +impl ::core::convert::From<&LayoutInformation> for ::windows::core::IInspectable { + fn from(value: &LayoutInformation) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectorItem { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LayoutInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectorItem { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LayoutInformation { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: SelectorItem) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) +unsafe impl ::core::marker::Send for LayoutInformation {} +unsafe impl ::core::marker::Sync for LayoutInformation {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ListViewItemPresenter(pub ::windows::core::IInspectable); +impl ListViewItemPresenter { + pub fn SelectionCheckMarkVisualEnabled(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } + } + pub fn SetSelectionCheckMarkVisualEnabled(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckHintBrush(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckHintBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckSelectingBrush(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckSelectingBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&SelectorItem> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &SelectorItem) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBrush(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::windows::core::IntoParam::into_param(&self) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + #[cfg(feature = "UI_Xaml_Media")] + pub fn DragBackground(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: SelectorItem) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetDragBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&SelectorItem> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &SelectorItem) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) + #[cfg(feature = "UI_Xaml_Media")] + pub fn DragForeground(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::windows::core::IntoParam::into_param(&self) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetDragForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + #[cfg(feature = "UI_Xaml_Media")] + pub fn FocusBorderBrush(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: SelectorItem) -> Self { - ::core::convert::Into::::into(&value) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetFocusBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl ::core::convert::From<&SelectorItem> for super::ContentControl { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() + #[cfg(feature = "UI_Xaml_Media")] + pub fn PlaceholderBackground(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetPlaceholderBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + #[cfg(feature = "UI_Xaml_Media")] + pub fn PointerOverBackground(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl ::core::convert::From for super::Control { - fn from(value: SelectorItem) -> Self { - ::core::convert::Into::::into(&value) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetPointerOverBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl ::core::convert::From<&SelectorItem> for super::Control { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedBackground(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedForeground(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: SelectorItem) -> Self { - ::core::convert::Into::::into(&value) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl ::core::convert::From<&SelectorItem> for super::super::FrameworkElement { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedPointerOverBackground(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedPointerOverBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedPointerOverBorderBrush(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: SelectorItem) -> Self { - ::core::convert::Into::::into(&value) + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedPointerOverBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl ::core::convert::From<&SelectorItem> for super::super::UIElement { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() + pub fn SelectedBorderThickness(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: super::super::Thickness = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + pub fn SetSelectedBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + pub fn DisabledOpacity(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SelectorItem) -> Self { - ::core::convert::Into::::into(&value) + pub fn SetDisabledOpacity(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } } -} -impl ::core::convert::From<&SelectorItem> for super::super::DependencyObject { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() + pub fn DragOpacity(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + pub fn SetDragOpacity(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } + } + pub fn ReorderHintOffset(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + pub fn SetReorderHintOffset(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } } -} -unsafe impl ::core::marker::Send for SelectorItem {} -unsafe impl ::core::marker::Sync for SelectorItem {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct SettingsFlyoutTemplateSettings(pub ::windows::core::IInspectable); -impl SettingsFlyoutTemplateSettings { - #[cfg(feature = "UI_Xaml_Media")] - pub fn HeaderBackground(&self) -> ::windows::core::Result { + #[cfg(feature = "deprecated")] + pub fn ListViewItemPresenterHorizontalContentAlignment(&self) -> ::windows::core::Result { let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn HeaderForeground(&self) -> ::windows::core::Result { + #[cfg(feature = "deprecated")] + pub fn SetListViewItemPresenterHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value).ok() } + } + #[cfg(feature = "deprecated")] + pub fn ListViewItemPresenterVerticalContentAlignment(&self) -> ::windows::core::Result { let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { + #[cfg(feature = "deprecated")] + pub fn SetListViewItemPresenterVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), value).ok() } + } + #[cfg(feature = "deprecated")] + pub fn ListViewItemPresenterPadding(&self) -> ::windows::core::Result { let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::Thickness = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn BorderThickness(&self) -> ::windows::core::Result { + #[cfg(feature = "deprecated")] + pub fn SetListViewItemPresenterPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn PointerOverBackgroundMargin(&self) -> ::windows::core::Result { let this = self; unsafe { let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn IconSource(&self) -> ::windows::core::Result { + pub fn SetPointerOverBackgroundMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn ContentMargin(&self) -> ::windows::core::Result { let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::Thickness = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { + pub fn SetContentMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { let this = self; + unsafe { (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedPressedBackground(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedPressedBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn PressedBackground(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetPressedBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn FocusSecondaryBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetFocusSecondaryBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn CheckMode(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ListViewItemPresenterCheckMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetCheckMode(&self, value: ListViewItemPresenterCheckMode) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn PointerOverForeground(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetPointerOverForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -unsafe impl ::windows::core::RuntimeType for SettingsFlyoutTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.SettingsFlyoutTemplateSettings;{bcf14c10-cea7-43f1-9d68-57605ded69d4})"); -} -unsafe impl ::windows::core::Interface for SettingsFlyoutTemplateSettings { - type Vtable = ISettingsFlyoutTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcf14c10_cea7_43f1_9d68_57605ded69d4); -} -impl ::windows::core::RuntimeName for SettingsFlyoutTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.SettingsFlyoutTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SettingsFlyoutTemplateSettings) -> Self { - value.0 .0 + pub fn SelectionCheckMarkVisualEnabledProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl ::core::convert::From<&SettingsFlyoutTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &SettingsFlyoutTemplateSettings) -> Self { - value.0 .0.clone() + pub fn CheckHintBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SettingsFlyoutTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) + pub fn CheckSelectingBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SettingsFlyoutTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) + pub fn CheckBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SettingsFlyoutTemplateSettings) -> Self { - value.0 + pub fn DragBackgroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl ::core::convert::From<&SettingsFlyoutTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &SettingsFlyoutTemplateSettings) -> Self { - value.0.clone() + pub fn DragForegroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SettingsFlyoutTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) + pub fn FocusBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SettingsFlyoutTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) + pub fn PlaceholderBackgroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SettingsFlyoutTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) + pub fn PointerOverBackgroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl ::core::convert::From<&SettingsFlyoutTemplateSettings> for super::super::DependencyObject { - fn from(value: &SettingsFlyoutTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() + pub fn SelectedBackgroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn SelectedForegroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn SelectedPointerOverBackgroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn SelectedPointerOverBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn SelectedBorderThicknessProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SettingsFlyoutTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + pub fn DisabledOpacityProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SettingsFlyoutTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + pub fn DragOpacityProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -unsafe impl ::core::marker::Send for SettingsFlyoutTemplateSettings {} -unsafe impl ::core::marker::Sync for SettingsFlyoutTemplateSettings {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct SliderSnapsTo(pub i32); -impl SliderSnapsTo { - pub const StepValues: SliderSnapsTo = SliderSnapsTo(0i32); - pub const Ticks: SliderSnapsTo = SliderSnapsTo(1i32); -} -impl ::core::convert::From for SliderSnapsTo { - fn from(value: i32) -> Self { - Self(value) + pub fn ReorderHintOffsetProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -unsafe impl ::windows::core::Abi for SliderSnapsTo { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for SliderSnapsTo { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.SliderSnapsTo;i4)"); -} -impl ::windows::core::DefaultType for SliderSnapsTo { - type DefaultType = Self; -} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] -#[repr(transparent)] -pub struct SnapPointsAlignment(pub i32); -impl SnapPointsAlignment { - pub const Near: SnapPointsAlignment = SnapPointsAlignment(0i32); - pub const Center: SnapPointsAlignment = SnapPointsAlignment(1i32); - pub const Far: SnapPointsAlignment = SnapPointsAlignment(2i32); -} -impl ::core::convert::From for SnapPointsAlignment { - fn from(value: i32) -> Self { - Self(value) + #[cfg(feature = "deprecated")] + pub fn ListViewItemPresenterHorizontalContentAlignmentProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -unsafe impl ::windows::core::Abi for SnapPointsAlignment { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for SnapPointsAlignment { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.SnapPointsAlignment;i4)"); -} -impl ::windows::core::DefaultType for SnapPointsAlignment { - type DefaultType = Self; -} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct SplitViewTemplateSettings(pub ::windows::core::IInspectable); -impl SplitViewTemplateSettings { - pub fn OpenPaneLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "deprecated")] + pub fn ListViewItemPresenterVerticalContentAlignmentProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn NegativeOpenPaneLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "deprecated")] + pub fn ListViewItemPresenterPaddingProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn OpenPaneLengthMinusCompactLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn PointerOverBackgroundMarginProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn NegativeOpenPaneLengthMinusCompactLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn ContentMarginProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn OpenPaneGridLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::GridLength = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn SelectedPressedBackgroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics2(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn CompactPaneGridLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::GridLength = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn PressedBackgroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics2(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn CheckBoxBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics2(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } + pub fn FocusSecondaryBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics2(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } + pub fn CheckModeProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics2(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn PointerOverForegroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics2(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn new() -> ::windows::core::Result { + Self::IListViewItemPresenterFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn RevealBackground(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetRevealBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn RevealBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } -} -unsafe impl ::windows::core::RuntimeType for SplitViewTemplateSettings { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.SplitViewTemplateSettings;{c16ab5a7-4996-4443-b199-6b6b89124eab})"); -} -unsafe impl ::windows::core::Interface for SplitViewTemplateSettings { - type Vtable = ISplitViewTemplateSettings_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc16ab5a7_4996_4443_b199_6b6b89124eab); -} -impl ::windows::core::RuntimeName for SplitViewTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.SplitViewTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SplitViewTemplateSettings) -> Self { - value.0 .0 - } -} -impl ::core::convert::From<&SplitViewTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &SplitViewTemplateSettings) -> Self { - value.0 .0.clone() - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SplitViewTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(self.0 .0) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SplitViewTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(&self.0 .0) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SplitViewTemplateSettings) -> Self { - value.0 - } -} -impl ::core::convert::From<&SplitViewTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &SplitViewTemplateSettings) -> Self { - value.0.clone() + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetRevealBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SplitViewTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(self.0) + pub fn RevealBorderThickness(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { + let mut result__: super::super::Thickness = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SplitViewTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(&self.0) + pub fn SetRevealBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SplitViewTemplateSettings) -> Self { - ::core::convert::Into::::into(&value) + pub fn RevealBackgroundShowsAboveContent(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } -} -impl ::core::convert::From<&SplitViewTemplateSettings> for super::super::DependencyObject { - fn from(value: &SplitViewTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() + pub fn SetRevealBackgroundShowsAboveContent(&self, value: bool) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SplitViewTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + pub fn RevealBackgroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics3(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SplitViewTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + pub fn RevealBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics3(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } -} -unsafe impl ::core::marker::Send for SplitViewTemplateSettings {} -unsafe impl ::core::marker::Sync for SplitViewTemplateSettings {} -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct Thumb(pub ::windows::core::IInspectable); -impl Thumb { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) + pub fn RevealBorderThicknessProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics3(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } + pub fn RevealBackgroundShowsAboveContentProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics3(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn IsDragging(&self) -> ::windows::core::Result { - let this = self; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedDisabledBackground(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn DragStarted<'a, Param0: ::windows::core::IntoParam<'a, DragStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedDisabledBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckPressedBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckPressedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation")] - pub fn DragDelta<'a, Param0: ::windows::core::IntoParam<'a, DragDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckDisabledBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDragDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckDisabledBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation")] - pub fn DragCompleted<'a, Param0: ::windows::core::IntoParam<'a, DragCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxPointerOverBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDragCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn CancelDrag(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this)).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxPointerOverBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn IsDraggingProperty() -> ::windows::core::Result { - Self::IThumbStatics(|this| unsafe { + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxPressedBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - }) + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxPressedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxDisabledBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxDisabledBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxSelectedBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxSelectedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxSelectedPointerOverBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxSelectedPointerOverBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxSelectedPressedBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxSelectedPressedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxSelectedDisabledBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxSelectedDisabledBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxPointerOverBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxPointerOverBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxPressedBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxPressedBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn CheckBoxDisabledBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetCheckBoxDisabledBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn CheckBoxCornerRadius(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetCheckBoxCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn SelectionIndicatorCornerRadius(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetSelectionIndicatorCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn SelectionIndicatorVisualEnabled(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetSelectionIndicatorVisualEnabled(&self, value: bool) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectionIndicatorMode(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ListViewItemPresenterSelectionIndicatorMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetSelectionIndicatorMode(&self, value: ListViewItemPresenterSelectionIndicatorMode) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value).ok() } } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectionIndicatorBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectionIndicatorBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectionIndicatorPointerOverBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectionIndicatorPointerOverBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectionIndicatorPressedBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectionIndicatorPressedBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectionIndicatorDisabledBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectionIndicatorDisabledBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedPressedBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedPressedBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedDisabledBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedDisabledBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SelectedInnerBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetSelectedInnerBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn PointerOverBorderBrush(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetPointerOverBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn SelectedDisabledBackgroundProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn CheckPressedBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn CheckDisabledBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn CheckBoxPointerOverBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn CheckBoxPressedBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn CheckBoxDisabledBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } + pub fn CheckBoxSelectedBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn CheckBoxSelectedPointerOverBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn CheckBoxSelectedPressedBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn CheckBoxSelectedDisabledBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn CheckBoxBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn CheckBoxPointerOverBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn CheckBoxPressedBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn CheckBoxDisabledBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn CheckBoxCornerRadiusProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn SelectionIndicatorCornerRadiusProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } + pub fn SelectionIndicatorVisualEnabledProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn SelectionIndicatorModeProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + pub fn SelectionIndicatorBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn SelectionIndicatorPointerOverBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SelectionIndicatorPressedBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn SelectionIndicatorDisabledBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn SelectedBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn SelectedPressedBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SelectedDisabledBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn SelectedInnerBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn PointerOverBorderBrushProperty() -> ::windows::core::Result { + Self::IListViewItemPresenterStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } + pub fn IListViewItemPresenterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IListViewItemPresenterStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } + pub fn IListViewItemPresenterFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IListViewItemPresenterStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn IListViewItemPresenterStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ListViewItemPresenter { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ListViewItemPresenter;{fc8946bd-a3a2-4969-8174-25b5d3c28033})"); +} +unsafe impl ::windows::core::Interface for ListViewItemPresenter { + type Vtable = IListViewItemPresenter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfc8946bd_a3a2_4969_8174_25b5d3c28033); +} +impl ::windows::core::RuntimeName for ListViewItemPresenter { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ListViewItemPresenter"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListViewItemPresenter) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListViewItemPresenter> for ::windows::core::IUnknown { + fn from(value: &ListViewItemPresenter) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListViewItemPresenter) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListViewItemPresenter> for ::windows::core::IInspectable { + fn from(value: &ListViewItemPresenter) -> Self { + value.0.clone() } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: ListViewItemPresenter) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ListViewItemPresenter> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &ListViewItemPresenter) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: ListViewItemPresenter) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ListViewItemPresenter> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &ListViewItemPresenter) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::ContentPresenter { + fn from(value: ListViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewItemPresenter> for super::ContentPresenter { + fn from(value: &ListViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentPresenter> for ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentPresenter> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentPresenter> for &ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentPresenter> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: ListViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewItemPresenter> for super::super::FrameworkElement { + fn from(value: &ListViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: ListViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ListViewItemPresenter> for super::super::UIElement { + fn from(value: &ListViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListViewItemPresenter> for super::super::DependencyObject { + fn from(value: &ListViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for ListViewItemPresenter {} +unsafe impl ::core::marker::Sync for ListViewItemPresenter {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct ListViewItemPresenterCheckMode(pub i32); +impl ListViewItemPresenterCheckMode { + pub const Inline: ListViewItemPresenterCheckMode = ListViewItemPresenterCheckMode(0i32); + pub const Overlay: ListViewItemPresenterCheckMode = ListViewItemPresenterCheckMode(1i32); +} +impl ::core::convert::From for ListViewItemPresenterCheckMode { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::windows::core::Abi for ListViewItemPresenterCheckMode { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for ListViewItemPresenterCheckMode { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ListViewItemPresenterCheckMode;i4)"); +} +impl ::windows::core::DefaultType for ListViewItemPresenterCheckMode { + type DefaultType = Self; +} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct ListViewItemPresenterSelectionIndicatorMode(pub i32); +impl ListViewItemPresenterSelectionIndicatorMode { + pub const Inline: ListViewItemPresenterSelectionIndicatorMode = ListViewItemPresenterSelectionIndicatorMode(0i32); + pub const Overlay: ListViewItemPresenterSelectionIndicatorMode = ListViewItemPresenterSelectionIndicatorMode(1i32); +} +impl ::core::convert::From for ListViewItemPresenterSelectionIndicatorMode { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::windows::core::Abi for ListViewItemPresenterSelectionIndicatorMode { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for ListViewItemPresenterSelectionIndicatorMode { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ListViewItemPresenterSelectionIndicatorMode;i4)"); +} +impl ::windows::core::DefaultType for ListViewItemPresenterSelectionIndicatorMode { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ListViewItemTemplateSettings(pub ::windows::core::IInspectable); +impl ListViewItemTemplateSettings { + pub fn DragItemsCount(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ListViewItemTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ListViewItemTemplateSettings;{67af84bf-8279-4686-9326-cd189f27575d})"); +} +unsafe impl ::windows::core::Interface for ListViewItemTemplateSettings { + type Vtable = IListViewItemTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67af84bf_8279_4686_9326_cd189f27575d); +} +impl ::windows::core::RuntimeName for ListViewItemTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ListViewItemTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ListViewItemTemplateSettings) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListViewItemTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &ListViewItemTemplateSettings) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ListViewItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ListViewItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ListViewItemTemplateSettings) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListViewItemTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &ListViewItemTemplateSettings) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ListViewItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ListViewItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ListViewItemTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ListViewItemTemplateSettings> for super::super::DependencyObject { + fn from(value: &ListViewItemTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ListViewItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ListViewItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ListViewItemTemplateSettings {} +unsafe impl ::core::marker::Sync for ListViewItemTemplateSettings {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct LoopingSelector(pub ::windows::core::IInspectable); +impl LoopingSelector { + pub fn ShouldLoop(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetShouldLoop(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation_Collections")] + pub fn Items(&self) -> ::windows::core::Result> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + #[cfg(feature = "Foundation_Collections")] + pub fn SetItems<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVector<::windows::core::IInspectable>>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectedIndex(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetSelectedIndex(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectedItem(&self) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetSelectedItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ItemWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetItemWidth(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ItemHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetItemHeight(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ItemTemplate(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn SetItemTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectionChanged<'a, Param0: ::windows::core::IntoParam<'a, super::SelectionChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn RemoveSelectionChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn ShouldLoopProperty() -> ::windows::core::Result { + Self::ILoopingSelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn ItemsProperty() -> ::windows::core::Result { + Self::ILoopingSelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SelectedIndexProperty() -> ::windows::core::Result { + Self::ILoopingSelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn SelectedItemProperty() -> ::windows::core::Result { + Self::ILoopingSelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn ItemWidthProperty() -> ::windows::core::Result { + Self::ILoopingSelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn ItemHeightProperty() -> ::windows::core::Result { + Self::ILoopingSelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn ItemTemplateProperty() -> ::windows::core::Result { + Self::ILoopingSelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn ILoopingSelectorStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for LoopingSelector { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.LoopingSelector;{4c9a3e04-4827-49d9-8806-093957b0fd21})"); +} +unsafe impl ::windows::core::Interface for LoopingSelector { + type Vtable = ILoopingSelector_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4c9a3e04_4827_49d9_8806_093957b0fd21); +} +impl ::windows::core::RuntimeName for LoopingSelector { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.LoopingSelector"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: LoopingSelector) -> Self { + value.0 .0 } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelector> for ::windows::core::IUnknown { + fn from(value: &LoopingSelector) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: LoopingSelector) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelector> for ::windows::core::IInspectable { + fn from(value: &LoopingSelector) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelector) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&LoopingSelector> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelector) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelector) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&LoopingSelector> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelector) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Control { + fn from(value: LoopingSelector) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&LoopingSelector> for super::Control { + fn from(value: &LoopingSelector) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: LoopingSelector) -> Self { + ::core::convert::Into::::into(&value) } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelector> for super::super::FrameworkElement { + fn from(value: &LoopingSelector) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: LoopingSelector) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelector> for super::super::UIElement { + fn from(value: &LoopingSelector) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: LoopingSelector) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&LoopingSelector> for super::super::DependencyObject { + fn from(value: &LoopingSelector) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for LoopingSelector {} +unsafe impl ::core::marker::Sync for LoopingSelector {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct LoopingSelectorItem(pub ::windows::core::IInspectable); +impl LoopingSelectorItem {} +unsafe impl ::windows::core::RuntimeType for LoopingSelectorItem { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.LoopingSelectorItem;{c69714b9-27c6-4433-9d7c-0dbfb2f4344f})"); +} +unsafe impl ::windows::core::Interface for LoopingSelectorItem { + type Vtable = ILoopingSelectorItem_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69714b9_27c6_4433_9d7c_0dbfb2f4344f); +} +impl ::windows::core::RuntimeName for LoopingSelectorItem { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.LoopingSelectorItem"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: LoopingSelectorItem) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelectorItem> for ::windows::core::IUnknown { + fn from(value: &LoopingSelectorItem) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: LoopingSelectorItem) -> Self { + value.0 } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&LoopingSelectorItem> for ::windows::core::IInspectable { + fn from(value: &LoopingSelectorItem) -> Self { + value.0.clone() } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorItem) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&LoopingSelectorItem> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorItem) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorItem) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&LoopingSelectorItem> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorItem) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::ContentControl { + fn from(value: LoopingSelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&LoopingSelectorItem> for super::ContentControl { + fn from(value: &LoopingSelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Control { + fn from(value: LoopingSelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelectorItem> for super::Control { + fn from(value: &LoopingSelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: LoopingSelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&LoopingSelectorItem> for super::super::FrameworkElement { + fn from(value: &LoopingSelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: LoopingSelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelectorItem> for super::super::UIElement { + fn from(value: &LoopingSelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: LoopingSelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&LoopingSelectorItem> for super::super::DependencyObject { + fn from(value: &LoopingSelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for LoopingSelectorItem {} +unsafe impl ::core::marker::Sync for LoopingSelectorItem {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct LoopingSelectorPanel(pub ::windows::core::IInspectable); +impl LoopingSelectorPanel { + pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation_Collections")] + pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) } } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) } } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for LoopingSelectorPanel { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.LoopingSelectorPanel;{40a9ba70-1011-4778-87f7-6bfd20d6377d})"); +} +unsafe impl ::windows::core::Interface for LoopingSelectorPanel { + type Vtable = ILoopingSelectorPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40a9ba70_1011_4778_87f7_6bfd20d6377d); +} +impl ::windows::core::RuntimeName for LoopingSelectorPanel { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.LoopingSelectorPanel"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: LoopingSelectorPanel) -> Self { + value.0 .0 } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelectorPanel> for ::windows::core::IUnknown { + fn from(value: &LoopingSelectorPanel) -> Self { + value.0 .0.clone() } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: LoopingSelectorPanel) -> Self { + value.0 } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelectorPanel> for ::windows::core::IInspectable { + fn from(value: &LoopingSelectorPanel) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::TryFrom for IScrollSnapPointsInfo { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::TryFrom<&LoopingSelectorPanel> for IScrollSnapPointsInfo { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for &LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&LoopingSelectorPanel> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: LoopingSelectorPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&LoopingSelectorPanel> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &LoopingSelectorPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl ::core::convert::From for super::Canvas { + fn from(value: LoopingSelectorPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelectorPanel> for super::Canvas { + fn from(value: &LoopingSelectorPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Canvas> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Canvas> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Canvas> for &LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Canvas> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Panel { + fn from(value: LoopingSelectorPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelectorPanel> for super::Panel { + fn from(value: &LoopingSelectorPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: LoopingSelectorPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&LoopingSelectorPanel> for super::super::FrameworkElement { + fn from(value: &LoopingSelectorPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: LoopingSelectorPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&LoopingSelectorPanel> for super::super::UIElement { + fn from(value: &LoopingSelectorPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: LoopingSelectorPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&LoopingSelectorPanel> for super::super::DependencyObject { + fn from(value: &LoopingSelectorPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LoopingSelectorPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for LoopingSelectorPanel {} +unsafe impl ::core::marker::Sync for LoopingSelectorPanel {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct MenuFlyoutItemTemplateSettings(pub ::windows::core::IInspectable); +impl MenuFlyoutItemTemplateSettings { + pub fn KeyboardAcceleratorTextMinWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for MenuFlyoutItemTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.MenuFlyoutItemTemplateSettings;{56ad1809-3a16-4147-81cb-d0b35c834e0f})"); +} +unsafe impl ::windows::core::Interface for MenuFlyoutItemTemplateSettings { + type Vtable = IMenuFlyoutItemTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56ad1809_3a16_4147_81cb_d0b35c834e0f); +} +impl ::windows::core::RuntimeName for MenuFlyoutItemTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.MenuFlyoutItemTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MenuFlyoutItemTemplateSettings) -> Self { + value.0 .0 } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuFlyoutItemTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &MenuFlyoutItemTemplateSettings) -> Self { + value.0 .0.clone() } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuFlyoutItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuFlyoutItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MenuFlyoutItemTemplateSettings) -> Self { + value.0 } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuFlyoutItemTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &MenuFlyoutItemTemplateSettings) -> Self { + value.0.clone() } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuFlyoutItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuFlyoutItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MenuFlyoutItemTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&MenuFlyoutItemTemplateSettings> for super::super::DependencyObject { + fn from(value: &MenuFlyoutItemTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuFlyoutItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuFlyoutItemTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for MenuFlyoutItemTemplateSettings {} +unsafe impl ::core::marker::Sync for MenuFlyoutItemTemplateSettings {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct MenuFlyoutPresenterTemplateSettings(pub ::windows::core::IInspectable); +impl MenuFlyoutPresenterTemplateSettings { + pub fn FlyoutContentMinWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for MenuFlyoutPresenterTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.MenuFlyoutPresenterTemplateSettings;{d68fd00d-629d-4349-ac51-b877c80983b8})"); +} +unsafe impl ::windows::core::Interface for MenuFlyoutPresenterTemplateSettings { + type Vtable = IMenuFlyoutPresenterTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd68fd00d_629d_4349_ac51_b877c80983b8); +} +impl ::windows::core::RuntimeName for MenuFlyoutPresenterTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.MenuFlyoutPresenterTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: MenuFlyoutPresenterTemplateSettings) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&MenuFlyoutPresenterTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &MenuFlyoutPresenterTemplateSettings) -> Self { + value.0 .0.clone() } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MenuFlyoutPresenterTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MenuFlyoutPresenterTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: MenuFlyoutPresenterTemplateSettings) -> Self { + value.0 } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&MenuFlyoutPresenterTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &MenuFlyoutPresenterTemplateSettings) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MenuFlyoutPresenterTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MenuFlyoutPresenterTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: MenuFlyoutPresenterTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&MenuFlyoutPresenterTemplateSettings> for super::super::DependencyObject { + fn from(value: &MenuFlyoutPresenterTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuFlyoutPresenterTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MenuFlyoutPresenterTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for MenuFlyoutPresenterTemplateSettings {} +unsafe impl ::core::marker::Sync for MenuFlyoutPresenterTemplateSettings {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct NavigationViewItemPresenter(pub ::windows::core::IInspectable); +impl NavigationViewItemPresenter { + pub fn Icon(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetIcon<'a, Param0: ::windows::core::IntoParam<'a, super::IconElement>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IconProperty() -> ::windows::core::Result { + Self::INavigationViewItemPresenterStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } + pub fn new() -> ::windows::core::Result { + Self::INavigationViewItemPresenterFactory(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn INavigationViewItemPresenterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } + pub fn INavigationViewItemPresenterFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for NavigationViewItemPresenter { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.NavigationViewItemPresenter;{9956d3fc-4693-59cb-b6bf-37249058be96})"); +} +unsafe impl ::windows::core::Interface for NavigationViewItemPresenter { + type Vtable = INavigationViewItemPresenter_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9956d3fc_4693_59cb_b6bf_37249058be96); +} +impl ::windows::core::RuntimeName for NavigationViewItemPresenter { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.NavigationViewItemPresenter"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: NavigationViewItemPresenter) -> Self { + value.0 .0 } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&NavigationViewItemPresenter> for ::windows::core::IUnknown { + fn from(value: &NavigationViewItemPresenter) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: NavigationViewItemPresenter) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&NavigationViewItemPresenter> for ::windows::core::IInspectable { + fn from(value: &NavigationViewItemPresenter) -> Self { + value.0.clone() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: NavigationViewItemPresenter) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&NavigationViewItemPresenter> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &NavigationViewItemPresenter) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: NavigationViewItemPresenter) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&NavigationViewItemPresenter> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &NavigationViewItemPresenter) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for super::ContentControl { + fn from(value: NavigationViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From<&NavigationViewItemPresenter> for super::ContentControl { + fn from(value: &NavigationViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Control { + fn from(value: NavigationViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&NavigationViewItemPresenter> for super::Control { + fn from(value: &NavigationViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: NavigationViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&NavigationViewItemPresenter> for super::super::FrameworkElement { + fn from(value: &NavigationViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: NavigationViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&NavigationViewItemPresenter> for super::super::UIElement { + fn from(value: &NavigationViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: NavigationViewItemPresenter) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&NavigationViewItemPresenter> for super::super::DependencyObject { + fn from(value: &NavigationViewItemPresenter) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &NavigationViewItemPresenter { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for NavigationViewItemPresenter {} +unsafe impl ::core::marker::Sync for NavigationViewItemPresenter {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct OrientedVirtualizingPanel(pub ::windows::core::IInspectable); +impl OrientedVirtualizingPanel { + pub fn CanVerticallyScroll(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } + pub fn SetCanVerticallyScroll(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn CanHorizontallyScroll(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetCanHorizontallyScroll(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExtentWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ExtentHeight(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ViewportWidth(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn ViewportHeight(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } + pub fn VerticalOffset(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ScrollOwner(&self) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetScrollOwner<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn LineUp(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn LineDown(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this)).ok() } } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn LineLeft(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this)).ok() } } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn LineRight(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn PageUp(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn PageDown(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn PageLeft(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn PageRight(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn MouseWheelUp(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn MouseWheelDown(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } + pub fn MouseWheelLeft(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } + pub fn MouseWheelRight(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this)).ok() } } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn SetHorizontalOffset(&self, offset: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), offset).ok() } } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetVerticalOffset(&self, offset: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), offset).ok() } } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn MakeVisible<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, visual: Param0, rectangle: Param1) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::Rect = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), visual.into_param().abi(), rectangle.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + } + #[cfg(feature = "Foundation_Collections")] + pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { + let mut result__: f32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) + } } - pub fn IThumbStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } + #[cfg(feature = "Foundation")] + pub fn GetInsertionIndexes<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, position: Param0, first: &mut i32, second: &mut i32) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), position.into_param().abi(), first, second).ok() } } } -unsafe impl ::windows::core::RuntimeType for Thumb { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.Thumb;{e8b2b281-0d6a-45cf-b333-2402b037f099})"); +unsafe impl ::windows::core::RuntimeType for OrientedVirtualizingPanel { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.OrientedVirtualizingPanel;{f077b577-39bd-46ee-bdd7-0826beed71b8})"); } -unsafe impl ::windows::core::Interface for Thumb { - type Vtable = IThumb_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b2b281_0d6a_45cf_b333_2402b037f099); +unsafe impl ::windows::core::Interface for OrientedVirtualizingPanel { + type Vtable = IOrientedVirtualizingPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf077b577_39bd_46ee_bdd7_0826beed71b8); } -impl ::windows::core::RuntimeName for Thumb { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.Thumb"; +impl ::windows::core::RuntimeName for OrientedVirtualizingPanel { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.OrientedVirtualizingPanel"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: Thumb) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: OrientedVirtualizingPanel) -> Self { value.0 .0 } } -impl ::core::convert::From<&Thumb> for ::windows::core::IUnknown { - fn from(value: &Thumb) -> Self { +impl ::core::convert::From<&OrientedVirtualizingPanel> for ::windows::core::IUnknown { + fn from(value: &OrientedVirtualizingPanel) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for Thumb { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for OrientedVirtualizingPanel { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a Thumb { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a OrientedVirtualizingPanel { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: Thumb) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: OrientedVirtualizingPanel) -> Self { value.0 } } -impl ::core::convert::From<&Thumb> for ::windows::core::IInspectable { - fn from(value: &Thumb) -> Self { +impl ::core::convert::From<&OrientedVirtualizingPanel> for ::windows::core::IInspectable { + fn from(value: &OrientedVirtualizingPanel) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for Thumb { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for OrientedVirtualizingPanel { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a Thumb { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a OrientedVirtualizingPanel { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } +impl ::core::convert::TryFrom for IScrollSnapPointsInfo { + type Error = ::windows::core::Error; + fn try_from(value: OrientedVirtualizingPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +impl ::core::convert::TryFrom<&OrientedVirtualizingPanel> for IScrollSnapPointsInfo { + type Error = ::windows::core::Error; + fn try_from(value: &OrientedVirtualizingPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { + ::windows::core::IntoParam::into_param(&self) + } +} +impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for &OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::TryFrom for super::IInsertionPanel { + type Error = ::windows::core::Error; + fn try_from(value: OrientedVirtualizingPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) + } +} +impl ::core::convert::TryFrom<&OrientedVirtualizingPanel> for super::IInsertionPanel { + type Error = ::windows::core::Error; + fn try_from(value: &OrientedVirtualizingPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::IInsertionPanel> for OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::IInsertionPanel> { + ::windows::core::IntoParam::into_param(&self) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::IInsertionPanel> for &OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::IInsertionPanel> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { type Error = ::windows::core::Error; - fn try_from(value: Thumb) -> ::windows::core::Result { + fn try_from(value: OrientedVirtualizingPanel) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&Thumb> for super::super::super::Composition::IAnimationObject { +impl ::core::convert::TryFrom<&OrientedVirtualizingPanel> for super::super::super::Composition::IAnimationObject { type Error = ::windows::core::Error; - fn try_from(value: &Thumb) -> ::windows::core::Result { + fn try_from(value: &OrientedVirtualizingPanel) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for Thumb { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for OrientedVirtualizingPanel { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &Thumb { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &OrientedVirtualizingPanel { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { type Error = ::windows::core::Error; - fn try_from(value: Thumb) -> ::windows::core::Result { + fn try_from(value: OrientedVirtualizingPanel) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&Thumb> for super::super::super::Composition::IVisualElement { +impl ::core::convert::TryFrom<&OrientedVirtualizingPanel> for super::super::super::Composition::IVisualElement { type Error = ::windows::core::Error; - fn try_from(value: &Thumb) -> ::windows::core::Result { + fn try_from(value: &OrientedVirtualizingPanel) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for Thumb { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for OrientedVirtualizingPanel { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &Thumb { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &OrientedVirtualizingPanel { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for super::Control { - fn from(value: Thumb) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for super::VirtualizingPanel { + fn from(value: OrientedVirtualizingPanel) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&Thumb> for super::Control { - fn from(value: &Thumb) -> Self { +impl ::core::convert::From<&OrientedVirtualizingPanel> for super::VirtualizingPanel { + fn from(value: &OrientedVirtualizingPanel) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::Control> for Thumb { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, super::VirtualizingPanel> for OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::VirtualizingPanel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &Thumb { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, super::VirtualizingPanel> for &OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::VirtualizingPanel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::Panel { + fn from(value: OrientedVirtualizingPanel) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&OrientedVirtualizingPanel> for super::Panel { + fn from(value: &OrientedVirtualizingPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: OrientedVirtualizingPanel) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&OrientedVirtualizingPanel> for super::super::FrameworkElement { + fn from(value: &OrientedVirtualizingPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: OrientedVirtualizingPanel) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&OrientedVirtualizingPanel> for super::super::UIElement { + fn from(value: &OrientedVirtualizingPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: OrientedVirtualizingPanel) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&OrientedVirtualizingPanel> for super::super::DependencyObject { + fn from(value: &OrientedVirtualizingPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &OrientedVirtualizingPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for OrientedVirtualizingPanel {} +unsafe impl ::core::marker::Sync for OrientedVirtualizingPanel {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct PickerFlyoutBase(pub ::windows::core::IInspectable); +impl PickerFlyoutBase { + pub fn TitleProperty() -> ::windows::core::Result { + Self::IPickerFlyoutBaseStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) + } + pub fn GetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { + Self::IPickerFlyoutBaseStatics(|this| unsafe { + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + }) + } + pub fn SetTitle<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { + Self::IPickerFlyoutBaseStatics(|this| unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), element.into_param().abi(), value.into_param().abi()).ok() }) + } + pub fn IPickerFlyoutBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } +} +unsafe impl ::windows::core::RuntimeType for PickerFlyoutBase { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.PickerFlyoutBase;{e33574ea-1076-44d1-9383-dc24ac5cff2a})"); +} +unsafe impl ::windows::core::Interface for PickerFlyoutBase { + type Vtable = IPickerFlyoutBase_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe33574ea_1076_44d1_9383_dc24ac5cff2a); +} +impl ::windows::core::RuntimeName for PickerFlyoutBase { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.PickerFlyoutBase"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PickerFlyoutBase) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&PickerFlyoutBase> for ::windows::core::IUnknown { + fn from(value: &PickerFlyoutBase) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PickerFlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PickerFlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: Thumb) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PickerFlyoutBase) -> Self { + value.0 } } -impl ::core::convert::From<&Thumb> for super::super::FrameworkElement { - fn from(value: &Thumb) -> Self { - ::windows::core::Interface::cast(value).unwrap() +impl ::core::convert::From<&PickerFlyoutBase> for ::windows::core::IInspectable { + fn from(value: &PickerFlyoutBase) -> Self { + value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for Thumb { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PickerFlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &Thumb { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PickerFlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for super::super::UIElement { - fn from(value: Thumb) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for FlyoutBase { + fn from(value: PickerFlyoutBase) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&Thumb> for super::super::UIElement { - fn from(value: &Thumb) -> Self { +impl ::core::convert::From<&PickerFlyoutBase> for FlyoutBase { + fn from(value: &PickerFlyoutBase) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for Thumb { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, FlyoutBase> for PickerFlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, FlyoutBase> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &Thumb { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, FlyoutBase> for &PickerFlyoutBase { + fn into_param(self) -> ::windows::core::Param<'a, FlyoutBase> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: Thumb) -> Self { +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PickerFlyoutBase) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&Thumb> for super::super::DependencyObject { - fn from(value: &Thumb) -> Self { +impl ::core::convert::From<&PickerFlyoutBase> for super::super::DependencyObject { + fn from(value: &PickerFlyoutBase) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for Thumb { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PickerFlyoutBase { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &Thumb { +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PickerFlyoutBase { fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for Thumb {} -unsafe impl ::core::marker::Sync for Thumb {} +unsafe impl ::core::marker::Send for PickerFlyoutBase {} +unsafe impl ::core::marker::Sync for PickerFlyoutBase {} #[repr(transparent)] #[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct TickBar(pub ::windows::core::IInspectable); -impl TickBar { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.activate_instance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - unsafe { SHARED.call(callback) } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Fill(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFill<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FillProperty() -> ::windows::core::Result { - Self::ITickBarStatics(|this| unsafe { +pub struct PivotHeaderItem(pub ::windows::core::IInspectable); +impl PivotHeaderItem { + pub fn new() -> ::windows::core::Result { + Self::IPivotHeaderItemFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } - } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IPivotHeaderItemFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for PivotHeaderItem { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.PivotHeaderItem;{594572c2-82aa-410b-9e55-fd8e2c98862d})"); +} +unsafe impl ::windows::core::Interface for PivotHeaderItem { + type Vtable = IPivotHeaderItem_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x594572c2_82aa_410b_9e55_fd8e2c98862d); +} +impl ::windows::core::RuntimeName for PivotHeaderItem { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.PivotHeaderItem"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PivotHeaderItem) -> Self { + value.0 .0 } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotHeaderItem> for ::windows::core::IUnknown { + fn from(value: &PivotHeaderItem) -> Self { + value.0 .0.clone() } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PivotHeaderItem) -> Self { + value.0 } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&PivotHeaderItem> for ::windows::core::IInspectable { + fn from(value: &PivotHeaderItem) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: PivotHeaderItem) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&PivotHeaderItem> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &PivotHeaderItem) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: PivotHeaderItem) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&PivotHeaderItem> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &PivotHeaderItem) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::ContentControl { + fn from(value: PivotHeaderItem) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&PivotHeaderItem> for super::ContentControl { + fn from(value: &PivotHeaderItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Control { + fn from(value: PivotHeaderItem) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotHeaderItem> for super::Control { + fn from(value: &PivotHeaderItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: PivotHeaderItem) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&PivotHeaderItem> for super::super::FrameworkElement { + fn from(value: &PivotHeaderItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: PivotHeaderItem) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&PivotHeaderItem> for super::super::UIElement { + fn from(value: &PivotHeaderItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PivotHeaderItem) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&PivotHeaderItem> for super::super::DependencyObject { + fn from(value: &PivotHeaderItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotHeaderItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for PivotHeaderItem {} +unsafe impl ::core::marker::Sync for PivotHeaderItem {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct PivotHeaderPanel(pub ::windows::core::IInspectable); +impl PivotHeaderPanel { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for PivotHeaderPanel { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.PivotHeaderPanel;{21484ebc-9241-4203-bd37-6c08fb096612})"); +} +unsafe impl ::windows::core::Interface for PivotHeaderPanel { + type Vtable = IPivotHeaderPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x21484ebc_9241_4203_bd37_6c08fb096612); +} +impl ::windows::core::RuntimeName for PivotHeaderPanel { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.PivotHeaderPanel"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PivotHeaderPanel) -> Self { + value.0 .0 } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&PivotHeaderPanel> for ::windows::core::IUnknown { + fn from(value: &PivotHeaderPanel) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PivotHeaderPanel) -> Self { + value.0 } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotHeaderPanel> for ::windows::core::IInspectable { + fn from(value: &PivotHeaderPanel) -> Self { + value.0.clone() } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: PivotHeaderPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&PivotHeaderPanel> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &PivotHeaderPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: PivotHeaderPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&PivotHeaderPanel> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &PivotHeaderPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::Canvas { + fn from(value: PivotHeaderPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotHeaderPanel> for super::Canvas { + fn from(value: &PivotHeaderPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Canvas> for PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Canvas> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Canvas> for &PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Canvas> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Panel { + fn from(value: PivotHeaderPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&PivotHeaderPanel> for super::Panel { + fn from(value: &PivotHeaderPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: PivotHeaderPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&PivotHeaderPanel> for super::super::FrameworkElement { + fn from(value: &PivotHeaderPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: PivotHeaderPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&PivotHeaderPanel> for super::super::UIElement { + fn from(value: &PivotHeaderPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PivotHeaderPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&PivotHeaderPanel> for super::super::DependencyObject { + fn from(value: &PivotHeaderPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotHeaderPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for PivotHeaderPanel {} +unsafe impl ::core::marker::Sync for PivotHeaderPanel {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct PivotPanel(pub ::windows::core::IInspectable); +impl PivotPanel { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn RemoveHorizontalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn RemoveVerticalSnapPointsChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation_Collections")] + pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), orientation, alignment, &mut result__).from_abi::>(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), orientation, alignment, offset, &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for PivotPanel { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.PivotPanel;{ad4ebe80-22a9-4ca3-9212-2773b6359ff3})"); +} +unsafe impl ::windows::core::Interface for PivotPanel { + type Vtable = IPivotPanel_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad4ebe80_22a9_4ca3_9212_2773b6359ff3); +} +impl ::windows::core::RuntimeName for PivotPanel { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.PivotPanel"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: PivotPanel) -> Self { + value.0 .0 } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotPanel> for ::windows::core::IUnknown { + fn from(value: &PivotPanel) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: PivotPanel) -> Self { + value.0 } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotPanel> for ::windows::core::IInspectable { + fn from(value: &PivotPanel) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::TryFrom for IScrollSnapPointsInfo { + type Error = ::windows::core::Error; + fn try_from(value: PivotPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::TryFrom<&PivotPanel> for IScrollSnapPointsInfo { + type Error = ::windows::core::Error; + fn try_from(value: &PivotPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, IScrollSnapPointsInfo> for &PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, IScrollSnapPointsInfo> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: PivotPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&PivotPanel> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &PivotPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: PivotPanel) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&PivotPanel> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &PivotPanel) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } +} +impl ::core::convert::From for super::Panel { + fn from(value: PivotPanel) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&PivotPanel> for super::Panel { + fn from(value: &PivotPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Panel> for &PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: PivotPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } +} +impl ::core::convert::From<&PivotPanel> for super::super::FrameworkElement { + fn from(value: &PivotPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: PivotPanel) -> Self { + ::core::convert::Into::::into(&value) } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&PivotPanel> for super::super::UIElement { + fn from(value: &PivotPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: PivotPanel) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&PivotPanel> for super::super::DependencyObject { + fn from(value: &PivotPanel) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &PivotPanel { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for PivotPanel {} +unsafe impl ::core::marker::Sync for PivotPanel {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct PlacementMode(pub i32); +impl PlacementMode { + pub const Bottom: PlacementMode = PlacementMode(2i32); + pub const Left: PlacementMode = PlacementMode(9i32); + pub const Mouse: PlacementMode = PlacementMode(7i32); + pub const Right: PlacementMode = PlacementMode(4i32); + pub const Top: PlacementMode = PlacementMode(10i32); +} +impl ::core::convert::From for PlacementMode { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +unsafe impl ::windows::core::Abi for PlacementMode { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for PlacementMode { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.PlacementMode;i4)"); +} +impl ::windows::core::DefaultType for PlacementMode { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct Popup(pub ::windows::core::IInspectable); +impl Popup { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Child(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetChild<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsOpen(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: bool = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetIsOpen(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn HorizontalOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn VerticalOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] + pub fn ChildTransitions(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] + pub fn SetChildTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + } + pub fn IsLightDismissEnabled(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetIsLightDismissEnabled(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn Opened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveOpened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn Closed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveClosed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn ChildProperty() -> ::windows::core::Result { + Self::IPopupStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn IsOpenProperty() -> ::windows::core::Result { + Self::IPopupStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn HorizontalOffsetProperty() -> ::windows::core::Result { + Self::IPopupStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn VerticalOffsetProperty() -> ::windows::core::Result { + Self::IPopupStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn ChildTransitionsProperty() -> ::windows::core::Result { + Self::IPopupStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn IsLightDismissEnabledProperty() -> ::windows::core::Result { + Self::IPopupStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn LightDismissOverlayMode(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::LightDismissOverlayMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetLightDismissOverlayMode(&self, value: super::LightDismissOverlayMode) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn LightDismissOverlayModeProperty() -> ::windows::core::Result { + Self::IPopupStatics2(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ShouldConstrainToRootBounds(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetShouldConstrainToRootBounds(&self, value: bool) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsConstrainedToRootBounds(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn ShouldConstrainToRootBoundsProperty() -> ::windows::core::Result { + Self::IPopupStatics3(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn PlacementTarget(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn DesiredPlacement(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: PopupPlacementMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetDesiredPlacement(&self, value: PopupPlacementMode) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ActualPlacement(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: PopupPlacementMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ActualPlacementChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn RemoveActualPlacementChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn PlacementTargetProperty() -> ::windows::core::Result { + Self::IPopupStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn DesiredPlacementProperty() -> ::windows::core::Result { + Self::IPopupStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn IPopupStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn IPopupStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } + pub fn IPopupStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IPopupStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } +} +unsafe impl ::windows::core::RuntimeType for Popup { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.Popup;{62418240-e6d3-4705-a1dc-39156456ee29})"); +} +unsafe impl ::windows::core::Interface for Popup { + type Vtable = IPopup_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62418240_e6d3_4705_a1dc_39156456ee29); +} +impl ::windows::core::RuntimeName for Popup { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.Popup"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: Popup) -> Self { + value.0 .0 } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Popup> for ::windows::core::IUnknown { + fn from(value: &Popup) -> Self { + value.0 .0.clone() } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for Popup { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a Popup { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: Popup) -> Self { + value.0 } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Popup> for ::windows::core::IInspectable { + fn from(value: &Popup) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for Popup { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a Popup { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: Popup) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&Popup> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &Popup) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: Popup) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&Popup> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &Popup) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: Popup) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&Popup> for super::super::FrameworkElement { + fn from(value: &Popup) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: Popup) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&Popup> for super::super::UIElement { + fn from(value: &Popup) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: Popup) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&Popup> for super::super::DependencyObject { + fn from(value: &Popup) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &Popup { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for Popup {} +unsafe impl ::core::marker::Sync for Popup {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct PopupPlacementMode(pub i32); +impl PopupPlacementMode { + pub const Auto: PopupPlacementMode = PopupPlacementMode(0i32); + pub const Top: PopupPlacementMode = PopupPlacementMode(1i32); + pub const Bottom: PopupPlacementMode = PopupPlacementMode(2i32); + pub const Left: PopupPlacementMode = PopupPlacementMode(3i32); + pub const Right: PopupPlacementMode = PopupPlacementMode(4i32); + pub const TopEdgeAlignedLeft: PopupPlacementMode = PopupPlacementMode(5i32); + pub const TopEdgeAlignedRight: PopupPlacementMode = PopupPlacementMode(6i32); + pub const BottomEdgeAlignedLeft: PopupPlacementMode = PopupPlacementMode(7i32); + pub const BottomEdgeAlignedRight: PopupPlacementMode = PopupPlacementMode(8i32); + pub const LeftEdgeAlignedTop: PopupPlacementMode = PopupPlacementMode(9i32); + pub const LeftEdgeAlignedBottom: PopupPlacementMode = PopupPlacementMode(10i32); + pub const RightEdgeAlignedTop: PopupPlacementMode = PopupPlacementMode(11i32); + pub const RightEdgeAlignedBottom: PopupPlacementMode = PopupPlacementMode(12i32); +} +impl ::core::convert::From for PopupPlacementMode { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::windows::core::Abi for PopupPlacementMode { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for PopupPlacementMode { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.PopupPlacementMode;i4)"); +} +impl ::windows::core::DefaultType for PopupPlacementMode { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ProgressBarTemplateSettings(pub ::windows::core::IInspectable); +impl ProgressBarTemplateSettings { + pub fn EllipseDiameter(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn EllipseOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn EllipseAnimationWellPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn EllipseAnimationEndPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ContainerAnimationStartPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ContainerAnimationEndPosition(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } - } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IndicatorLengthDelta(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for ProgressBarTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ProgressBarTemplateSettings;{3fe2ea2a-e3f2-4c2b-9488-918d77d2bbe4})"); +} +unsafe impl ::windows::core::Interface for ProgressBarTemplateSettings { + type Vtable = IProgressBarTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3fe2ea2a_e3f2_4c2b_9488_918d77d2bbe4); +} +impl ::windows::core::RuntimeName for ProgressBarTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ProgressBarTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ProgressBarTemplateSettings) -> Self { + value.0 .0 } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ProgressBarTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &ProgressBarTemplateSettings) -> Self { + value.0 .0.clone() } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ProgressBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ProgressBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ProgressBarTemplateSettings) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ProgressBarTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &ProgressBarTemplateSettings) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ProgressBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ProgressBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ProgressBarTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ProgressBarTemplateSettings> for super::super::DependencyObject { + fn from(value: &ProgressBarTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ProgressBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ProgressBarTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ProgressBarTemplateSettings {} +unsafe impl ::core::marker::Sync for ProgressBarTemplateSettings {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ProgressRingTemplateSettings(pub ::windows::core::IInspectable); +impl ProgressRingTemplateSettings { + pub fn EllipseDiameter(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn EllipseOffset(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::Thickness = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn MaxSideLength(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for ProgressRingTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ProgressRingTemplateSettings;{b9b675ec-c723-42e6-83e9-9826272bdc0e})"); +} +unsafe impl ::windows::core::Interface for ProgressRingTemplateSettings { + type Vtable = IProgressRingTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9b675ec_c723_42e6_83e9_9826272bdc0e); +} +impl ::windows::core::RuntimeName for ProgressRingTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ProgressRingTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ProgressRingTemplateSettings) -> Self { + value.0 .0 } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ProgressRingTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &ProgressRingTemplateSettings) -> Self { + value.0 .0.clone() } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ProgressRingTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ProgressRingTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ProgressRingTemplateSettings) -> Self { + value.0 } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ProgressRingTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &ProgressRingTemplateSettings) -> Self { + value.0.clone() } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ProgressRingTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ProgressRingTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ProgressRingTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&ProgressRingTemplateSettings> for super::super::DependencyObject { + fn from(value: &ProgressRingTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ProgressRingTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ProgressRingTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for ProgressRingTemplateSettings {} +unsafe impl ::core::marker::Sync for ProgressRingTemplateSettings {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct RangeBase(pub ::windows::core::IInspectable); +impl RangeBase { + pub fn Minimum(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetMinimum(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Maximum(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetMaximum(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SmallChange(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetSmallChange(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn LargeChange(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } + pub fn SetLargeChange(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Value(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetValue(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } + } + #[cfg(feature = "Foundation")] + pub fn ValueChanged<'a, Param0: ::windows::core::IntoParam<'a, RangeBaseValueChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + #[cfg(feature = "Foundation")] + pub fn RemoveValueChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + } + pub fn MinimumProperty() -> ::windows::core::Result { + Self::IRangeBaseStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn MaximumProperty() -> ::windows::core::Result { + Self::IRangeBaseStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn SmallChangeProperty() -> ::windows::core::Result { + Self::IRangeBaseStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn LargeChangeProperty() -> ::windows::core::Result { + Self::IRangeBaseStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn ValueProperty() -> ::windows::core::Result { + Self::IRangeBaseStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn ITickBarStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + pub fn IRangeBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); unsafe { SHARED.call(callback) } } } -unsafe impl ::windows::core::RuntimeType for TickBar { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.TickBar;{994683fa-f1f6-487d-a5ac-c15921bfa995})"); +unsafe impl ::windows::core::RuntimeType for RangeBase { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.RangeBase;{fa002c1a-494e-46cf-91d4-e14a8d798675})"); } -unsafe impl ::windows::core::Interface for TickBar { - type Vtable = ITickBar_abi; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x994683fa_f1f6_487d_a5ac_c15921bfa995); +unsafe impl ::windows::core::Interface for RangeBase { + type Vtable = IRangeBase_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798675); } -impl ::windows::core::RuntimeName for TickBar { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.TickBar"; +impl ::windows::core::RuntimeName for RangeBase { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.RangeBase"; } -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TickBar) -> Self { +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RangeBase) -> Self { value.0 .0 } } -impl ::core::convert::From<&TickBar> for ::windows::core::IUnknown { - fn from(value: &TickBar) -> Self { +impl ::core::convert::From<&RangeBase> for ::windows::core::IUnknown { + fn from(value: &RangeBase) -> Self { value.0 .0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TickBar { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RangeBase { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Owned(self.0 .0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TickBar { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RangeBase { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TickBar) -> Self { +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RangeBase) -> Self { value.0 } } -impl ::core::convert::From<&TickBar> for ::windows::core::IInspectable { - fn from(value: &TickBar) -> Self { +impl ::core::convert::From<&RangeBase> for ::windows::core::IInspectable { + fn from(value: &RangeBase) -> Self { value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TickBar { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RangeBase { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TickBar { +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RangeBase { fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { ::windows::core::Param::Borrowed(&self.0) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { type Error = ::windows::core::Error; - fn try_from(value: TickBar) -> ::windows::core::Result { + fn try_from(value: RangeBase) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&TickBar> for super::super::super::Composition::IAnimationObject { +impl ::core::convert::TryFrom<&RangeBase> for super::super::super::Composition::IAnimationObject { type Error = ::windows::core::Error; - fn try_from(value: &TickBar) -> ::windows::core::Result { + fn try_from(value: &RangeBase) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for TickBar { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for RangeBase { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &TickBar { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &RangeBase { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { type Error = ::windows::core::Error; - fn try_from(value: TickBar) -> ::windows::core::Result { + fn try_from(value: RangeBase) -> ::windows::core::Result { ::core::convert::TryFrom::try_from(&value) } } #[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&TickBar> for super::super::super::Composition::IVisualElement { +impl ::core::convert::TryFrom<&RangeBase> for super::super::super::Composition::IVisualElement { type Error = ::windows::core::Error; - fn try_from(value: &TickBar) -> ::windows::core::Result { + fn try_from(value: &RangeBase) -> ::windows::core::Result { ::windows::core::Interface::cast(value) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for TickBar { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for RangeBase { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { ::windows::core::IntoParam::into_param(&self) } } #[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &TickBar { +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &RangeBase { fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } } -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: TickBar) -> Self { +impl ::core::convert::From for super::Control { + fn from(value: RangeBase) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RangeBase> for super::Control { + fn from(value: &RangeBase) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for RangeBase { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &RangeBase { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: RangeBase) -> Self { ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TickBar> for super::super::FrameworkElement { - fn from(value: &TickBar) -> Self { +impl ::core::convert::From<&RangeBase> for super::super::FrameworkElement { + fn from(value: &RangeBase) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for TickBar { +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for RangeBase { fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &TickBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &RangeBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: RangeBase) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RangeBase> for super::super::UIElement { + fn from(value: &RangeBase) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for RangeBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &RangeBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: RangeBase) -> Self { + ::core::convert::Into::::into(&value) + } +} +impl ::core::convert::From<&RangeBase> for super::super::DependencyObject { + fn from(value: &RangeBase) -> Self { + ::windows::core::Interface::cast(value).unwrap() + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RangeBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) + } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RangeBase { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for RangeBase {} +unsafe impl ::core::marker::Sync for RangeBase {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct RangeBaseValueChangedEventArgs(pub ::windows::core::IInspectable); +impl RangeBaseValueChangedEventArgs { + pub fn OldValue(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } + } + pub fn NewValue(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } + } +} +unsafe impl ::windows::core::RuntimeType for RangeBaseValueChangedEventArgs { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs;{a1921777-d5c1-4f9c-a7b0-0401b7e6dc5c})"); +} +unsafe impl ::windows::core::Interface for RangeBaseValueChangedEventArgs { + type Vtable = IRangeBaseValueChangedEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa1921777_d5c1_4f9c_a7b0_0401b7e6dc5c); +} +impl ::windows::core::RuntimeName for RangeBaseValueChangedEventArgs { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RangeBaseValueChangedEventArgs) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&RangeBaseValueChangedEventArgs> for ::windows::core::IUnknown { + fn from(value: &RangeBaseValueChangedEventArgs) -> Self { + value.0 .0.clone() + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RangeBaseValueChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) + } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RangeBaseValueChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } } -impl ::core::convert::From for super::super::UIElement { - fn from(value: TickBar) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RangeBaseValueChangedEventArgs) -> Self { + value.0 } } -impl ::core::convert::From<&TickBar> for super::super::UIElement { - fn from(value: &TickBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() +impl ::core::convert::From<&RangeBaseValueChangedEventArgs> for ::windows::core::IInspectable { + fn from(value: &RangeBaseValueChangedEventArgs) -> Self { + value.0.clone() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for TickBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RangeBaseValueChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &TickBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RangeBaseValueChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } } -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: TickBar) -> Self { - ::core::convert::Into::::into(&value) +impl ::core::convert::From for super::super::RoutedEventArgs { + fn from(value: RangeBaseValueChangedEventArgs) -> Self { + ::core::convert::Into::::into(&value) } } -impl ::core::convert::From<&TickBar> for super::super::DependencyObject { - fn from(value: &TickBar) -> Self { +impl ::core::convert::From<&RangeBaseValueChangedEventArgs> for super::super::RoutedEventArgs { + fn from(value: &RangeBaseValueChangedEventArgs) -> Self { ::windows::core::Interface::cast(value).unwrap() } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TickBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for RangeBaseValueChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } } -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TickBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &RangeBaseValueChangedEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } } -unsafe impl ::core::marker::Send for TickBar {} -unsafe impl ::core::marker::Sync for TickBar {} -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +unsafe impl ::core::marker::Send for RangeBaseValueChangedEventArgs {} +unsafe impl ::core::marker::Sync for RangeBaseValueChangedEventArgs {} #[repr(transparent)] -pub struct TickPlacement(pub i32); -impl TickPlacement { - pub const None: TickPlacement = TickPlacement(0i32); - pub const TopLeft: TickPlacement = TickPlacement(1i32); - pub const BottomRight: TickPlacement = TickPlacement(2i32); - pub const Outside: TickPlacement = TickPlacement(3i32); - pub const Inline: TickPlacement = TickPlacement(4i32); -} -impl ::core::convert::From for TickPlacement { - fn from(value: i32) -> Self { - Self(value) +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct RangeBaseValueChangedEventHandler(::windows::core::IUnknown); +impl RangeBaseValueChangedEventHandler { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + let com = RangeBaseValueChangedEventHandler_box:: { + vtable: &RangeBaseValueChangedEventHandler_box::::VTABLE, + count: ::windows::core::RefCount::new(1), + invoke, + }; + unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } + } + pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, RangeBaseValueChangedEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } } } -unsafe impl ::windows::core::Abi for TickPlacement { - type Abi = Self; +unsafe impl ::windows::core::RuntimeType for RangeBaseValueChangedEventHandler { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({e3906fd9-4d1b-4ac8-a43c-c3b908742799})"); } -unsafe impl ::windows::core::RuntimeType for TickPlacement { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.TickPlacement;i4)"); +unsafe impl ::windows::core::Interface for RangeBaseValueChangedEventHandler { + type Vtable = RangeBaseValueChangedEventHandler_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3906fd9_4d1b_4ac8_a43c_c3b908742799); } -impl ::windows::core::DefaultType for TickPlacement { - type DefaultType = Self; +#[repr(C)] +#[doc(hidden)] +pub struct RangeBaseValueChangedEventHandler_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(C)] +struct RangeBaseValueChangedEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { + vtable: *const RangeBaseValueChangedEventHandler_abi, + invoke: F, + count: ::windows::core::RefCount, } -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] -pub struct ToggleButton(pub ::windows::core::IInspectable); -impl ToggleButton { - #[cfg(feature = "Foundation")] - pub fn IsChecked(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) +impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> RangeBaseValueChangedEventHandler_box { + const VTABLE: RangeBaseValueChangedEventHandler_abi = RangeBaseValueChangedEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); + unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { + &mut (*this).vtable as *mut _ as _ + } else { + ::core::ptr::null_mut() + }; + if (*interface).is_null() { + ::windows::core::HRESULT(0x8000_4002) + } else { + (*this).count.add_ref(); + ::windows::core::HRESULT(0) } } - #[cfg(feature = "Foundation")] - pub fn SetIsChecked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + (*this).count.add_ref() } - pub fn IsThreeState(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + let remaining = (*this).count.release(); + if remaining == 0 { + ::windows::core::alloc::boxed::Box::from_raw(this); } + remaining } - pub fn SetIsThreeState(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } + unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + ((*this).invoke)( + &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), + &*(&e as *const ::Abi as *const ::DefaultType), + ) + .into() } - #[cfg(feature = "Foundation")] - pub fn Checked<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct RepeatButton(pub ::windows::core::IInspectable); +impl RepeatButton { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - #[cfg(feature = "Foundation")] - pub fn RemoveChecked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn Unchecked<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + pub fn Delay(&self) -> ::windows::core::Result { let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveUnchecked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + pub fn SetDelay(&self, value: i32) -> ::windows::core::Result<()> { let this = self; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation")] - pub fn Indeterminate<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + pub fn Interval(&self) -> ::windows::core::Result { let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveIndeterminate<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + pub fn SetInterval(&self, value: i32) -> ::windows::core::Result<()> { let this = self; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } } - pub fn IsCheckedProperty() -> ::windows::core::Result { - Self::IToggleButtonStatics(|this| unsafe { + pub fn DelayProperty() -> ::windows::core::Result { + Self::IRepeatButtonStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn IsThreeStateProperty() -> ::windows::core::Result { - Self::IToggleButtonStatics(|this| unsafe { + pub fn IntervalProperty() -> ::windows::core::Result { + Self::IRepeatButtonStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn new() -> ::windows::core::Result { - Self::IToggleButtonFactory(|this| unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) - }) - } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn IRepeatButtonStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +unsafe impl ::windows::core::RuntimeType for RepeatButton { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.RepeatButton;{02200df9-021a-484a-a93b-0f31020314e5})"); +} +unsafe impl ::windows::core::Interface for RepeatButton { + type Vtable = IRepeatButton_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02200df9_021a_484a_a93b_0f31020314e5); +} +impl ::windows::core::RuntimeName for RepeatButton { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.RepeatButton"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: RepeatButton) -> Self { + value.0 .0 } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&RepeatButton> for ::windows::core::IUnknown { + fn from(value: &RepeatButton) -> Self { + value.0 .0.clone() } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: RepeatButton) -> Self { + value.0 } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&RepeatButton> for ::windows::core::IInspectable { + fn from(value: &RepeatButton) -> Self { + value.0.clone() } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: RepeatButton) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&RepeatButton> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &RepeatButton) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: RepeatButton) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&RepeatButton> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &RepeatButton) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ButtonBase { + fn from(value: RepeatButton) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetHorizontalAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&RepeatButton> for ButtonBase { + fn from(value: &RepeatButton) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ButtonBase> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBase> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetVerticalAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ButtonBase> for &RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, ButtonBase> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::ContentControl { + fn from(value: RepeatButton) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&RepeatButton> for super::ContentControl { + fn from(value: &RepeatButton) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Control { + fn from(value: RepeatButton) -> Self { + ::core::convert::Into::::into(&value) } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl ::core::convert::From<&RepeatButton> for super::Control { + fn from(value: &RepeatButton) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: RepeatButton) -> Self { + ::core::convert::Into::::into(&value) } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&RepeatButton> for super::super::FrameworkElement { + fn from(value: &RepeatButton) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetFlowDirection(&self, value: super::super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: RepeatButton) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&RepeatButton> for super::super::UIElement { + fn from(value: &RepeatButton) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: RepeatButton) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&RepeatButton> for super::super::DependencyObject { + fn from(value: &RepeatButton) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &RepeatButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +unsafe impl ::core::marker::Send for RepeatButton {} +unsafe impl ::core::marker::Sync for RepeatButton {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ScrollBar(pub ::windows::core::IInspectable); +impl ScrollBar { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Orientation(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::Orientation = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetRequestedTheme(&self, value: super::super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SetOrientation(&self, value: super::Orientation) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ViewportSize(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetViewportSize(&self, value: f64) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IndicatorMode(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ScrollingIndicatorMode = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } + pub fn SetIndicatorMode(&self, value: ScrollingIndicatorMode) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } + } #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Scroll<'a, Param0: ::windows::core::IntoParam<'a, ScrollEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } + pub fn RemoveScroll<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn OrientationProperty() -> ::windows::core::Result { + Self::IScrollBarStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } + pub fn ViewportSizeProperty() -> ::windows::core::Result { + Self::IScrollBarStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn IndicatorModeProperty() -> ::windows::core::Result { + Self::IScrollBarStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn IScrollBarStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ScrollBar { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ScrollBar;{f57ae6ca-d1a6-4b90-a4e9-54df1ba8d2ec})"); +} +unsafe impl ::windows::core::Interface for ScrollBar { + type Vtable = IScrollBar_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf57ae6ca_d1a6_4b90_a4e9_54df1ba8d2ec); +} +impl ::windows::core::RuntimeName for ScrollBar { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ScrollBar"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ScrollBar) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ScrollBar> for ::windows::core::IUnknown { + fn from(value: &ScrollBar) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ScrollBar) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&ScrollBar> for ::windows::core::IInspectable { + fn from(value: &ScrollBar) -> Self { + value.0.clone() } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: ScrollBar) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetVisibility(&self, value: super::super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ScrollBar> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &ScrollBar) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: ScrollBar) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&ScrollBar> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &ScrollBar) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for RangeBase { + fn from(value: ScrollBar) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ScrollBar> for RangeBase { + fn from(value: &ScrollBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBase> for ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, RangeBase> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, RangeBase> for &ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, RangeBase> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::Control { + fn from(value: ScrollBar) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ScrollBar> for super::Control { + fn from(value: &ScrollBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: ScrollBar) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&ScrollBar> for super::super::FrameworkElement { + fn from(value: &ScrollBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: ScrollBar) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ScrollBar> for super::super::UIElement { + fn from(value: &ScrollBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: ScrollBar) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ScrollBar> for super::super::DependencyObject { + fn from(value: &ScrollBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ScrollBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for ScrollBar {} +unsafe impl ::core::marker::Sync for ScrollBar {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ScrollEventArgs(pub ::windows::core::IInspectable); +impl ScrollEventArgs { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn DragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn NewValue(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDragLeave<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn ScrollEventType(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).53)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ScrollEventType = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDragOver<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).54)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Drop<'a, Param0: ::windows::core::IntoParam<'a, super::super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).55)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for ScrollEventArgs { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ScrollEventArgs;{c57e5168-3afe-448d-b752-2f364c75d743})"); +} +unsafe impl ::windows::core::Interface for ScrollEventArgs { + type Vtable = IScrollEventArgs_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc57e5168_3afe_448d_b752_2f364c75d743); +} +impl ::windows::core::RuntimeName for ScrollEventArgs { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ScrollEventArgs"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: ScrollEventArgs) -> Self { + value.0 .0 } - #[cfg(feature = "Foundation")] - pub fn RemoveDrop<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).56)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ScrollEventArgs> for ::windows::core::IUnknown { + fn from(value: &ScrollEventArgs) -> Self { + value.0 .0.clone() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).57)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ScrollEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemovePointerPressed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).58)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ScrollEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).59)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: ScrollEventArgs) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn RemovePointerMoved<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).60)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ScrollEventArgs> for ::windows::core::IInspectable { + fn from(value: &ScrollEventArgs) -> Self { + value.0.clone() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).61)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ScrollEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn RemovePointerReleased<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).62)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ScrollEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).63)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::RoutedEventArgs { + fn from(value: ScrollEventArgs) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn RemovePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).64)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From<&ScrollEventArgs> for super::super::RoutedEventArgs { + fn from(value: &ScrollEventArgs) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).65)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for ScrollEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemovePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).66)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::RoutedEventArgs> for &ScrollEventArgs { + fn into_param(self) -> ::windows::core::Param<'a, super::super::RoutedEventArgs> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).67)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for ScrollEventArgs {} +unsafe impl ::core::marker::Sync for ScrollEventArgs {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ScrollEventHandler(::windows::core::IUnknown); +impl ScrollEventHandler { + pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + 'static>(invoke: F) -> Self { + let com = ScrollEventHandler_box:: { + vtable: &ScrollEventHandler_box::::VTABLE, + count: ::windows::core::RefCount::new(1), + invoke, + }; + unsafe { core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCaptureLost<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).68)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn Invoke<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ScrollEventArgs>>(&self, sender: Param0, e: Param1) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).3)(::core::mem::transmute_copy(this), sender.into_param().abi(), e.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).69)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) +} +unsafe impl ::windows::core::RuntimeType for ScrollEventHandler { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"delegate({8860b0a4-a383-4c83-b306-a1c39d7db87f})"); +} +unsafe impl ::windows::core::Interface for ScrollEventHandler { + type Vtable = ScrollEventHandler_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8860b0a4_a383_4c83_b306_a1c39d7db87f); +} +#[repr(C)] +#[doc(hidden)] +pub struct ScrollEventHandler_abi( + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr) -> u32, + pub unsafe extern "system" fn(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT, +); +#[repr(C)] +struct ScrollEventHandler_box, &::core::option::Option) -> ::windows::core::Result<()> + 'static> { + vtable: *const ScrollEventHandler_abi, + invoke: F, + count: ::windows::core::RefCount, +} +impl, &::core::option::Option) -> ::windows::core::Result<()> + 'static> ScrollEventHandler_box { + const VTABLE: ScrollEventHandler_abi = ScrollEventHandler_abi(Self::QueryInterface, Self::AddRef, Self::Release, Self::Invoke); + unsafe extern "system" fn QueryInterface(this: ::windows::core::RawPtr, iid: &::windows::core::GUID, interface: *mut ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + *interface = if iid == &::IID || iid == &<::windows::core::IUnknown as ::windows::core::Interface>::IID || iid == &<::windows::core::IAgileObject as ::windows::core::Interface>::IID { + &mut (*this).vtable as *mut _ as _ + } else { + ::core::ptr::null_mut() + }; + if (*interface).is_null() { + ::windows::core::HRESULT(0x8000_4002) + } else { + (*this).count.add_ref(); + ::windows::core::HRESULT(0) } } - #[cfg(feature = "Foundation")] - pub fn RemovePointerCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).70)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe extern "system" fn AddRef(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + (*this).count.add_ref() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::PointerEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).71)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + unsafe extern "system" fn Release(this: ::windows::core::RawPtr) -> u32 { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + let remaining = (*this).count.release(); + if remaining == 0 { + ::windows::core::alloc::boxed::Box::from_raw(this); } + remaining } - #[cfg(feature = "Foundation")] - pub fn RemovePointerWheelChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).72)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + unsafe extern "system" fn Invoke(this: ::windows::core::RawPtr, sender: ::windows::core::RawPtr, e: ::windows::core::RawPtr) -> ::windows::core::HRESULT { + let this = this as *mut ::windows::core::RawPtr as *mut Self; + ((*this).invoke)( + &*(&sender as *const <::windows::core::IInspectable as ::windows::core::Abi>::Abi as *const <::windows::core::IInspectable as ::windows::core::DefaultType>::DefaultType), + &*(&e as *const ::Abi as *const ::DefaultType), + ) + .into() } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Tapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::TappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).73)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct ScrollEventType(pub i32); +impl ScrollEventType { + pub const SmallDecrement: ScrollEventType = ScrollEventType(0i32); + pub const SmallIncrement: ScrollEventType = ScrollEventType(1i32); + pub const LargeDecrement: ScrollEventType = ScrollEventType(2i32); + pub const LargeIncrement: ScrollEventType = ScrollEventType(3i32); + pub const ThumbPosition: ScrollEventType = ScrollEventType(4i32); + pub const ThumbTrack: ScrollEventType = ScrollEventType(5i32); + pub const First: ScrollEventType = ScrollEventType(6i32); + pub const Last: ScrollEventType = ScrollEventType(7i32); + pub const EndScroll: ScrollEventType = ScrollEventType(8i32); +} +impl ::core::convert::From for ScrollEventType { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).74)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::windows::core::Abi for ScrollEventType { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for ScrollEventType { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ScrollEventType;i4)"); +} +impl ::windows::core::DefaultType for ScrollEventType { + type DefaultType = Self; +} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct ScrollingIndicatorMode(pub i32); +impl ScrollingIndicatorMode { + pub const None: ScrollingIndicatorMode = ScrollingIndicatorMode(0i32); + pub const TouchIndicator: ScrollingIndicatorMode = ScrollingIndicatorMode(1i32); + pub const MouseIndicator: ScrollingIndicatorMode = ScrollingIndicatorMode(2i32); +} +impl ::core::convert::From for ScrollingIndicatorMode { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn DoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::DoubleTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::windows::core::Abi for ScrollingIndicatorMode { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for ScrollingIndicatorMode { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.ScrollingIndicatorMode;i4)"); +} +impl ::windows::core::DefaultType for ScrollingIndicatorMode { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct Selector(pub ::windows::core::IInspectable); +impl Selector { + pub fn SelectedIndex(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).75)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveDoubleTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).76)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetSelectedIndex(&self, value: i32) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn Holding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::HoldingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectedItem(&self) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).77)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveHolding<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).78)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetSelectedItem<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn RightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::RightTappedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectedValue(&self) -> ::windows::core::Result<::windows::core::IInspectable> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).79)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).80)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetSelectedValue<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectedValuePath(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).81)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).82)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationInertiaStartingEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).83)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn SetSelectedValuePath<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn RemoveManipulationInertiaStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).84)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsSynchronizedWithCurrentItem(&self) -> ::windows::core::Result> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).85)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveManipulationStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).86)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).87)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn SetIsSynchronizedWithCurrentItem<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn RemoveManipulationDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).88)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ManipulationCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn SelectionChanged<'a, Param0: ::windows::core::IntoParam<'a, super::SelectionChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).89)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveManipulationCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).90)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Measure<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Size>>(&self, availablesize: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).91)(::core::mem::transmute_copy(this), availablesize.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Arrange<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Rect>>(&self, finalrect: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).92)(::core::mem::transmute_copy(this), finalrect.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn CapturePointer<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).93)(::core::mem::transmute_copy(this), value.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ReleasePointerCapture<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::Pointer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).94)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ReleasePointerCaptures(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).95)(::core::mem::transmute_copy(this)).ok() } - } - pub fn AddHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1, handledeventstoo: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).96)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi(), handledeventstoo).ok() } + pub fn RemoveSelectionChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn RemoveHandler<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEvent>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, routedevent: Param0, handler: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).97)(::core::mem::transmute_copy(this), routedevent.into_param().abi(), handler.into_param().abi()).ok() } + pub fn SelectedIndexProperty() -> ::windows::core::Result { + Self::ISelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn TransformToVisual<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(&self, visual: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn SelectedItemProperty() -> ::windows::core::Result { + Self::ISelectorStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).98)(::core::mem::transmute_copy(this), visual.into_param().abi(), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn InvalidateMeasure(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).99)(::core::mem::transmute_copy(this)).ok() } + pub fn SelectedValueProperty() -> ::windows::core::Result { + Self::ISelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn InvalidateArrange(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).100)(::core::mem::transmute_copy(this)).ok() } + pub fn SelectedValuePathProperty() -> ::windows::core::Result { + Self::ISelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn UpdateLayout(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).101)(::core::mem::transmute_copy(this)).ok() } + pub fn IsSynchronizedWithCurrentItemProperty() -> ::windows::core::Result { + Self::ISelectorStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CompositeMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Media::ElementCompositeMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn GetIsSelectionActive<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(element: Param0) -> ::windows::core::Result { + Self::ISelectorStatics(|this| unsafe { + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), element.into_param().abi(), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCompositeMode(&self, value: super::super::Media::ElementCompositeMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + pub fn ISelectorStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn CancelDirectManipulations(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for Selector { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.Selector;{e30eb3a5-b36b-42dc-8527-cd25136c083c})"); +} +unsafe impl ::windows::core::Interface for Selector { + type Vtable = ISelector_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe30eb3a5_b36b_42dc_8527_cd25136c083c); +} +impl ::windows::core::RuntimeName for Selector { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.Selector"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: Selector) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn Transform3D(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Selector> for ::windows::core::IUnknown { + fn from(value: &Selector) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Media_Media3D")] - pub fn SetTransform3D<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Media3D::Transform3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn CanDrag(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a Selector { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetCanDrag(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: Selector) -> Self { + value.0 } - #[cfg(feature = "Foundation")] - pub fn DragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Selector> for ::windows::core::IInspectable { + fn from(value: &Selector) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn RemoveDragStarting<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn DropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a Selector { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveDropCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::TryFrom for super::IItemContainerMapping { + type Error = ::windows::core::Error; + fn try_from(value: Selector) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation", feature = "UI_Input"))] - pub fn StartDragAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Input::PointerPoint>>(&self, pointerpoint: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), pointerpoint.into_param().abi(), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::TryFrom<&Selector> for super::IItemContainerMapping { + type Error = ::windows::core::Error; + fn try_from(value: &Selector) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn Content(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::IItemContainerMapping> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::IItemContainerMapping> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetContent<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::IItemContainerMapping> for &Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::IItemContainerMapping> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn ContentTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: Selector) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetContentTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::super::DataTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&Selector> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &Selector) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn ContentTemplateSelector(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetContentTemplateSelector<'a, Param0: ::windows::core::IntoParam<'a, super::DataTemplateSelector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: Selector) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetContentTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&Selector> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &Selector) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn ContentTemplateRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn FontSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetFontSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::ItemsControl { + fn from(value: Selector) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FontFamily(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Selector> for super::ItemsControl { + fn from(value: &Selector) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFontFamily<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::FontFamily>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::ItemsControl> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::ItemsControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Text")] - pub fn FontWeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontWeight = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::ItemsControl> for &Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::ItemsControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Text")] - pub fn SetFontWeight<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::Control { + fn from(value: Selector) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Text")] - pub fn FontStyle(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStyle = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Selector> for super::Control { + fn from(value: &Selector) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Text")] - pub fn SetFontStyle(&self, value: super::super::super::Text::FontStyle) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Text")] - pub fn FontStretch(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Text::FontStretch = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Text")] - pub fn SetFontStretch(&self, value: super::super::super::Text::FontStretch) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: Selector) -> Self { + ::core::convert::Into::::into(&value) } - pub fn CharacterSpacing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Selector> for super::super::FrameworkElement { + fn from(value: &Selector) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Foreground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetForeground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: Selector) -> Self { + ::core::convert::Into::::into(&value) } - pub fn IsTabStop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Selector> for super::super::UIElement { + fn from(value: &Selector) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetIsTabStop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: Selector) -> Self { + ::core::convert::Into::::into(&value) } - pub fn TabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Selector> for super::super::DependencyObject { + fn from(value: &Selector) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &Selector { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for Selector {} +unsafe impl ::core::marker::Sync for Selector {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct SelectorItem(pub ::windows::core::IInspectable); +impl SelectorItem { + pub fn IsSelected(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetIsSelected(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - pub fn Template(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn IsSelectedProperty() -> ::windows::core::Result { + Self::ISelectorItemStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetTemplate<'a, Param0: ::windows::core::IntoParam<'a, super::ControlTemplate>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn ISelectorItemStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } + } +} +unsafe impl ::windows::core::RuntimeType for SelectorItem { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.SelectorItem;{541c8d6c-0283-4581-b945-2a64c28a0646})"); +} +unsafe impl ::windows::core::Interface for SelectorItem { + type Vtable = ISelectorItem_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x541c8d6c_0283_4581_b945_2a64c28a0646); +} +impl ::windows::core::RuntimeName for SelectorItem { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.SelectorItem"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: SelectorItem) -> Self { + value.0 .0 } - pub fn Padding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SelectorItem> for ::windows::core::IUnknown { + fn from(value: &SelectorItem) -> Self { + value.0 .0.clone() } - pub fn SetPadding<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn HorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: SelectorItem) -> Self { + value.0 } - pub fn VerticalContentAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SelectorItem> for ::windows::core::IInspectable { + fn from(value: &SelectorItem) -> Self { + value.0.clone() } - pub fn SetVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Background(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBackground<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: SelectorItem) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&SelectorItem> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &SelectorItem) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetBorderThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetBorderBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: SelectorItem) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn FocusState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::FocusState = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&SelectorItem> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &SelectorItem) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn IsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation")] - pub fn RemoveIsEnabledChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn ApplyTemplate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::ContentControl { + fn from(value: SelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - pub fn Focus(&self, value: super::super::FocusState) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), value, &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SelectorItem> for super::ContentControl { + fn from(value: &SelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn IsTextScaleFactorEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn UseSystemFocusVisuals(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::Control { + fn from(value: SelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetUseSystemFocusVisuals(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&SelectorItem> for super::Control { + fn from(value: &SelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn DefaultStyleKey(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetDefaultStyleKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn GetTemplateChild<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, childname: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), childname.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: SelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - pub fn ClickMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ClickMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SelectorItem> for super::super::FrameworkElement { + fn from(value: &SelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetClickMode(&self, value: super::ClickMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn IsPointerOver(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn IsPressed(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: SelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn Command(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SelectorItem> for super::super::UIElement { + fn from(value: &SelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetCommand<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ICommand>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn CommandParameter(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetCommandParameter<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: SelectorItem) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn Click<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SelectorItem> for super::super::DependencyObject { + fn from(value: &SelectorItem) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveClick<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SelectorItem { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) + } +} +unsafe impl ::core::marker::Send for SelectorItem {} +unsafe impl ::core::marker::Sync for SelectorItem {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct SettingsFlyoutTemplateSettings(pub ::windows::core::IInspectable); +impl SettingsFlyoutTemplateSettings { + #[cfg(feature = "UI_Xaml_Media")] + pub fn HeaderBackground(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn FocusVisualMargin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn HeaderForeground(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetFocusVisualMargin<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualSecondaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn BorderBrush(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetFocusVisualSecondaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn FocusVisualPrimaryThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn BorderThickness(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetFocusVisualPrimaryThickness<'a, Param0: ::windows::core::IntoParam<'a, super::super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualSecondaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IconSource(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualSecondaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusVisualPrimaryBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] + pub fn ContentTransitions(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetFocusVisualPrimaryBrush<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for SettingsFlyoutTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.SettingsFlyoutTemplateSettings;{bcf14c10-cea7-43f1-9d68-57605ded69d4})"); +} +unsafe impl ::windows::core::Interface for SettingsFlyoutTemplateSettings { + type Vtable = ISettingsFlyoutTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcf14c10_cea7_43f1_9d68_57605ded69d4); +} +impl ::windows::core::RuntimeName for SettingsFlyoutTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.SettingsFlyoutTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: SettingsFlyoutTemplateSettings) -> Self { + value.0 .0 } - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SettingsFlyoutTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &SettingsFlyoutTemplateSettings) -> Self { + value.0 .0.clone() } - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SettingsFlyoutTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn ContextFlyout(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SettingsFlyoutTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn SetContextFlyout<'a, Param0: ::windows::core::IntoParam<'a, FlyoutBase>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: SettingsFlyoutTemplateSettings) -> Self { + value.0 } - pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SettingsFlyoutTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &SettingsFlyoutTemplateSettings) -> Self { + value.0.clone() } - pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SettingsFlyoutTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn IsAccessKeyScope(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SettingsFlyoutTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: SettingsFlyoutTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) } - pub fn AccessKeyScopeOwner(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&SettingsFlyoutTemplateSettings> for super::super::DependencyObject { + fn from(value: &SettingsFlyoutTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SettingsFlyoutTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn AccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SettingsFlyoutTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +unsafe impl ::core::marker::Send for SettingsFlyoutTemplateSettings {} +unsafe impl ::core::marker::Sync for SettingsFlyoutTemplateSettings {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct SliderSnapsTo(pub i32); +impl SliderSnapsTo { + pub const StepValues: SliderSnapsTo = SliderSnapsTo(0i32); + pub const Ticks: SliderSnapsTo = SliderSnapsTo(1i32); +} +impl ::core::convert::From for SliderSnapsTo { + fn from(value: i32) -> Self { + Self(value) + } +} +unsafe impl ::windows::core::Abi for SliderSnapsTo { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for SliderSnapsTo { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.SliderSnapsTo;i4)"); +} +impl ::windows::core::DefaultType for SliderSnapsTo { + type DefaultType = Self; +} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct SnapPointsAlignment(pub i32); +impl SnapPointsAlignment { + pub const Near: SnapPointsAlignment = SnapPointsAlignment(0i32); + pub const Center: SnapPointsAlignment = SnapPointsAlignment(1i32); + pub const Far: SnapPointsAlignment = SnapPointsAlignment(2i32); +} +impl ::core::convert::From for SnapPointsAlignment { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::windows::core::Abi for SnapPointsAlignment { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for SnapPointsAlignment { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.SnapPointsAlignment;i4)"); +} +impl ::windows::core::DefaultType for SnapPointsAlignment { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct SplitViewTemplateSettings(pub ::windows::core::IInspectable); +impl SplitViewTemplateSettings { + pub fn OpenPaneLength(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn ContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn NegativeOpenPaneLength(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveContextCanceled<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn OpenPaneLengthMinusCompactLength(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn NegativeOpenPaneLengthMinusCompactLength(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: f64 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn OpenPaneGridLength(&self) -> ::windows::core::Result { + let this = self; + unsafe { + let mut result__: super::super::GridLength = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + } } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn AccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn CompactPaneGridLength(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: super::super::GridLength = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::windows::core::RuntimeType for SplitViewTemplateSettings { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.SplitViewTemplateSettings;{c16ab5a7-4996-4443-b199-6b6b89124eab})"); +} +unsafe impl ::windows::core::Interface for SplitViewTemplateSettings { + type Vtable = ISplitViewTemplateSettings_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc16ab5a7_4996_4443_b199_6b6b89124eab); +} +impl ::windows::core::RuntimeName for SplitViewTemplateSettings { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.SplitViewTemplateSettings"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: SplitViewTemplateSettings) -> Self { + value.0 .0 + } +} +impl ::core::convert::From<&SplitViewTemplateSettings> for ::windows::core::IUnknown { + fn from(value: &SplitViewTemplateSettings) -> Self { + value.0 .0.clone() } - pub fn IsFocusEngagementEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SplitViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn SetIsFocusEngagementEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SplitViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn IsFocusEngaged(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: SplitViewTemplateSettings) -> Self { + value.0 } - pub fn SetIsFocusEngaged(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&SplitViewTemplateSettings> for ::windows::core::IInspectable { + fn from(value: &SplitViewTemplateSettings) -> Self { + value.0.clone() } - pub fn RequiresPointer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::RequiresPointer = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SplitViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetRequiresPointer(&self, value: super::RequiresPointer) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SplitViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn XYFocusLeft(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: SplitViewTemplateSettings) -> Self { + ::core::convert::Into::::into(&value) } - pub fn SetXYFocusLeft<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&SplitViewTemplateSettings> for super::super::DependencyObject { + fn from(value: &SplitViewTemplateSettings) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn XYFocusRight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SplitViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetXYFocusRight<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &SplitViewTemplateSettings { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn XYFocusUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::core::marker::Send for SplitViewTemplateSettings {} +unsafe impl ::core::marker::Sync for SplitViewTemplateSettings {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct Thumb(pub ::windows::core::IInspectable); +impl Thumb { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - pub fn SetXYFocusUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn XYFocusDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsDragging(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetXYFocusDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn DragStarted<'a, Param0: ::windows::core::IntoParam<'a, DragStartedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::ElementSoundMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveDragStarted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn FocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn DragDelta<'a, Param0: ::windows::core::IntoParam<'a, DragDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveFocusEngaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn RemoveDragDelta<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } #[cfg(feature = "Foundation")] - pub fn FocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn DragCompleted<'a, Param0: ::windows::core::IntoParam<'a, DragCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } #[cfg(feature = "Foundation")] - pub fn RemoveFocusDisengaged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn RemoveDragCompleted<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn RemoveFocusEngagement(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this)).ok() } + pub fn CancelDrag(&self) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this)).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media"))] - pub fn Lights(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn IsDraggingProperty() -> ::windows::core::Result { + Self::IThumbStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyTipPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyTipPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyTipPlacementMode(&self, value: super::super::Input::KeyTipPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipHorizontalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn KeyTipVerticalOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusKeyboardNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusKeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusKeyboardNavigation(&self, value: super::super::Input::XYFocusKeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IThumbStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusUpNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } +} +unsafe impl ::windows::core::RuntimeType for Thumb { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.Thumb;{e8b2b281-0d6a-45cf-b333-2402b037f099})"); +} +unsafe impl ::windows::core::Interface for Thumb { + type Vtable = IThumb_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b2b281_0d6a_45cf_b333_2402b037f099); +} +impl ::windows::core::RuntimeName for Thumb { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.Thumb"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: Thumb) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Thumb> for ::windows::core::IUnknown { + fn from(value: &Thumb) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusDownNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for Thumb { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a Thumb { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: Thumb) -> Self { + value.0 } - #[cfg(feature = "UI_Xaml_Input")] - pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::XYFocusNavigationStrategy = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Thumb> for ::windows::core::IInspectable { + fn from(value: &Thumb) -> Self { + value.0.clone() } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetXYFocusRightNavigationStrategy(&self, value: super::super::Input::XYFocusNavigationStrategy) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for Thumb { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn HighContrastAdjustment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementHighContrastAdjustment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a Thumb { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetHighContrastAdjustment(&self, value: super::super::ElementHighContrastAdjustment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: Thumb) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TabFocusNavigation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardNavigationMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&Thumb> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &Thumb) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetTabFocusNavigation(&self, value: super::super::Input::KeyboardNavigationMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn GettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveGettingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: Thumb) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn LosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&Thumb> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &Thumb) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveLosingFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn NoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveNoFocusCandidateFound<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for super::Control { + fn from(value: Thumb) -> Self { + ::core::convert::Into::::into(&value) } - pub fn StartBringIntoView(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this)).ok() } +} +impl ::core::convert::From<&Thumb> for super::Control { + fn from(value: &Thumb) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn StartBringIntoViewWithOptions<'a, Param0: ::windows::core::IntoParam<'a, super::super::BringIntoViewOptions>>(&self, options: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), options.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn DefaultStyleResourceUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::Control> for &Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn SetDefaultStyleResourceUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: Thumb) -> Self { + ::core::convert::Into::::into(&value) } - pub fn ActualTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Thumb> for super::super::FrameworkElement { + fn from(value: &Thumb) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn ActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation")] - pub fn RemoveActualThemeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn KeyboardAccelerators(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: Thumb) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn CharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Thumb> for super::super::UIElement { + fn from(value: &Thumb) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemoveCharacterReceived<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn ProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn RemoveProcessKeyboardAccelerators<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: Thumb) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&Thumb> for super::super::DependencyObject { + fn from(value: &Thumb) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn PreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &Thumb { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation")] - pub fn RemovePreviewKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +unsafe impl ::core::marker::Send for Thumb {} +unsafe impl ::core::marker::Sync for Thumb {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct TickBar(pub ::windows::core::IInspectable); +impl TickBar { + pub fn new() -> ::windows::core::Result { + Self::IActivationFactory(|f| f.activate_instance::()) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn TryInvokeKeyboardAccelerator<'a, Param0: ::windows::core::IntoParam<'a, super::super::Input::ProcessKeyboardAcceleratorEventArgs>>(&self, args: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), args.into_param().abi()).ok() } + fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn KeyTipTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn Fill(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetKeyTipTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Media")] + pub fn SetFill<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Brush>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn KeyboardAcceleratorPlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn FillProperty() -> ::windows::core::Result { + Self::ITickBarStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetKeyboardAcceleratorPlacementTarget<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn ITickBarStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "UI_Xaml_Input")] - pub fn KeyboardAcceleratorPlacementMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::Input::KeyboardAcceleratorPlacementMode = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for TickBar { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.TickBar;{994683fa-f1f6-487d-a5ac-c15921bfa995})"); +} +unsafe impl ::windows::core::Interface for TickBar { + type Vtable = ITickBar_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x994683fa_f1f6_487d_a5ac_c15921bfa995); +} +impl ::windows::core::RuntimeName for TickBar { + const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.TickBar"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: TickBar) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetKeyboardAcceleratorPlacementMode(&self, value: super::super::Input::KeyboardAcceleratorPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&TickBar> for ::windows::core::IUnknown { + fn from(value: &TickBar) -> Self { + value.0 .0.clone() } - #[cfg(feature = "Foundation")] - pub fn BringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TickBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "Foundation")] - pub fn RemoveBringIntoViewRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TickBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "UI_Composition")] - pub fn PopulatePropertyInfo<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, Param1: ::windows::core::IntoParam<'a, super::super::super::Composition::AnimationPropertyInfo>>(&self, propertyname: Param0, propertyinfo: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), propertyname.into_param().abi(), propertyinfo.into_param().abi()).ok() } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: TickBar) -> Self { + value.0 } - pub fn IsLoaded(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&TickBar> for ::windows::core::IInspectable { + fn from(value: &TickBar) -> Self { + value.0.clone() } - #[cfg(feature = "Foundation")] - pub fn EffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TickBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - #[cfg(feature = "Foundation")] - pub fn RemoveEffectiveViewportChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TickBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) + } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: TickBar) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn InvalidateViewport(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this)).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&TickBar> for super::super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &TickBar) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn CanBeScrollAnchor(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetCanBeScrollAnchor(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for &TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) + } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: TickBar) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn OpacityTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&TickBar> for super::super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &TickBar) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetOpacityTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation_Numerics")] - pub fn Translation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for &TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTranslation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::FrameworkElement { + fn from(value: TickBar) -> Self { + ::core::convert::Into::::into(&value) } - pub fn TranslationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&TickBar> for super::super::FrameworkElement { + fn from(value: &TickBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetTranslationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Rotation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f32 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetRotation(&self, value: f32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::super::UIElement { + fn from(value: TickBar) -> Self { + ::core::convert::Into::::into(&value) } - pub fn RotationTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&TickBar> for super::super::UIElement { + fn from(value: &TickBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetRotationTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::ScalarTransition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetScale<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::super::DependencyObject { + fn from(value: TickBar) -> Self { + ::core::convert::Into::::into(&value) } - pub fn ScaleTransition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&TickBar> for super::super::DependencyObject { + fn from(value: &TickBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetScaleTransition<'a, Param0: ::windows::core::IntoParam<'a, super::super::Vector3Transition>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - #[cfg(feature = "Foundation_Numerics")] - pub fn TransformMatrix(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Matrix4x4 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TickBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetTransformMatrix<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Matrix4x4>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +unsafe impl ::core::marker::Send for TickBar {} +unsafe impl ::core::marker::Sync for TickBar {} +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: marker :: Copy, :: core :: clone :: Clone, :: core :: default :: Default, :: core :: fmt :: Debug)] +#[repr(transparent)] +pub struct TickPlacement(pub i32); +impl TickPlacement { + pub const None: TickPlacement = TickPlacement(0i32); + pub const TopLeft: TickPlacement = TickPlacement(1i32); + pub const BottomRight: TickPlacement = TickPlacement(2i32); + pub const Outside: TickPlacement = TickPlacement(3i32); + pub const Inline: TickPlacement = TickPlacement(4i32); +} +impl ::core::convert::From for TickPlacement { + fn from(value: i32) -> Self { + Self(value) } - #[cfg(feature = "Foundation_Numerics")] - pub fn CenterPoint(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::windows::core::Abi for TickPlacement { + type Abi = Self; +} +unsafe impl ::windows::core::RuntimeType for TickPlacement { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.TickPlacement;i4)"); +} +impl ::windows::core::DefaultType for TickPlacement { + type DefaultType = Self; +} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct ToggleButton(pub ::windows::core::IInspectable); +impl ToggleButton { + #[cfg(feature = "Foundation")] + pub fn IsChecked(&self) -> ::windows::core::Result> { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetCenterPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation")] + pub fn SetIsChecked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn RotationAxis(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsThreeState(&self) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn SetRotationAxis<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Numerics::Vector3>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StartAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } - } - #[cfg(feature = "UI_Composition")] - pub fn StopAnimation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Composition::ICompositionAnimationBase>>(&self, animation: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), animation.into_param().abi()).ok() } + pub fn SetIsThreeState(&self, value: bool) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value).ok() } } - pub fn BackgroundSizing(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn Checked<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::BackgroundSizing = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetBackgroundSizing(&self, value: super::BackgroundSizing) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveChecked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn CornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn Unchecked<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::CornerRadius = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - pub fn SetCornerRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::CornerRadius>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + #[cfg(feature = "Foundation")] + pub fn RemoveUnchecked<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualOffset(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "Foundation")] + pub fn Indeterminate<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { + let this = self; unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector3 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: super::super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation_Numerics")] - pub fn ActualSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::super::Foundation::Numerics::Vector2 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + #[cfg(feature = "Foundation")] + pub fn RemoveIndeterminate<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } } - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn IsCheckedProperty() -> ::windows::core::Result { + Self::IToggleButtonStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetXamlRoot<'a, Param0: ::windows::core::IntoParam<'a, super::super::XamlRoot>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn UIContext(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn IsThreeStateProperty() -> ::windows::core::Result { + Self::IToggleButtonStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Shadow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn new() -> ::windows::core::Result { + Self::IToggleButtonFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetShadow<'a, Param0: ::windows::core::IntoParam<'a, super::super::Media::Shadow>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } pub fn IToggleButtonStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); @@ -70541,54 +16332,6 @@ impl ToggleSwitchTemplateSettings { (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } } unsafe impl ::windows::core::RuntimeType for ToggleSwitchTemplateSettings { const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ToggleSwitchTemplateSettings;{02b7bdcd-628a-4363-86e0-51d6e2e89e58})"); @@ -70680,54 +16423,6 @@ impl ToolTipTemplateSettings { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } - } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } - } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } - } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } - } } unsafe impl ::windows::core::RuntimeType for ToolTipTemplateSettings { const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ToolTipTemplateSettings;{d4388247-0ec4-4506-affd-afac2225b48c})"); diff --git a/src/Windows/UI/Xaml/Controls/mod.rs b/src/Windows/UI/Xaml/Controls/mod.rs index f44e0ec0c5..45cac488ad 100644 --- a/src/Windows/UI/Xaml/Controls/mod.rs +++ b/src/Windows/UI/Xaml/Controls/mod.rs @@ -217,3670 +217,3465 @@ impl AppBar { (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) }) } - pub fn GetValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IAppBarStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } + pub fn IAppBarStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ClearValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), dp.into_param().abi()).ok() } + pub fn IAppBarFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn ReadLocalValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } + pub fn IAppBarStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn GetAnimationBaseValue<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +unsafe impl ::windows::core::RuntimeType for AppBar { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.AppBar;{7b0fc253-86a5-4b43-9872-0b8a6234b74b})"); +} +unsafe impl ::windows::core::Interface for AppBar { + type Vtable = IAppBar_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b0fc253_86a5_4b43_9872_0b8a6234b74b); +} +impl ::windows::core::RuntimeName for AppBar { + const NAME: &'static str = "Windows.UI.Xaml.Controls.AppBar"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: AppBar) -> Self { + value.0 .0 } - #[cfg(feature = "UI_Core")] - pub fn Dispatcher(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&AppBar> for ::windows::core::IUnknown { + fn from(value: &AppBar) -> Self { + value.0 .0.clone() } - pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: i64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - #[cfg(feature = "Foundation_Collections")] - pub fn Triggers(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: AppBar) -> Self { + value.0 } - pub fn Resources(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&AppBar> for ::windows::core::IInspectable { + fn from(value: &AppBar) -> Self { + value.0.clone() } - pub fn SetResources<'a, Param0: ::windows::core::IntoParam<'a, super::ResourceDictionary>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBar { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn SetTag<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: AppBar) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn Language(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&AppBar> for super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &AppBar) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetLanguage<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Composition::IAnimationObject> for AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - pub fn ActualWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Composition::IAnimationObject> for &AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn ActualHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: AppBar) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn Width(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&AppBar> for super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &AppBar) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn SetWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Composition::IVisualElement> for AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn Height(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Composition::IVisualElement> for &AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - pub fn SetHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for ContentControl { + fn from(value: AppBar) -> Self { + ::core::convert::Into::::into(&value) } - pub fn MinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&AppBar> for ContentControl { + fn from(value: &AppBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetMinWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ContentControl> for AppBar { + fn into_param(self) -> ::windows::core::Param<'a, ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn MaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ContentControl> for &AppBar { + fn into_param(self) -> ::windows::core::Param<'a, ContentControl> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetMaxWidth(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for Control { + fn from(value: AppBar) -> Self { + ::core::convert::Into::::into(&value) } - pub fn MinHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&AppBar> for Control { + fn from(value: &AppBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetMinHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, Control> for AppBar { + fn into_param(self) -> ::windows::core::Param<'a, Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn MaxHeight(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, Control> for &AppBar { + fn into_param(self) -> ::windows::core::Param<'a, Control> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetMaxHeight(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::FrameworkElement { + fn from(value: AppBar) -> Self { + ::core::convert::Into::::into(&value) } - pub fn HorizontalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::HorizontalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&AppBar> for super::FrameworkElement { + fn from(value: &AppBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetHorizontalAlignment(&self, value: super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::FrameworkElement> for AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn VerticalAlignment(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::VerticalAlignment = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::FrameworkElement> for &AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::FrameworkElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetVerticalAlignment(&self, value: super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From for super::UIElement { + fn from(value: AppBar) -> Self { + ::core::convert::Into::::into(&value) } - pub fn Margin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::Thickness = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&AppBar> for super::UIElement { + fn from(value: &AppBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn SetMargin<'a, Param0: ::windows::core::IntoParam<'a, super::Thickness>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::UIElement> for AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::UIElement> for &AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::UIElement> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From for super::DependencyObject { + fn from(value: AppBar) -> Self { + ::core::convert::Into::::into(&value) } - #[cfg(feature = "Foundation")] - pub fn BaseUri(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From<&AppBar> for super::DependencyObject { + fn from(value: &AppBar) -> Self { + ::windows::core::Interface::cast(value).unwrap() } - pub fn DataContext(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, super::DependencyObject> for AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(self)) } - pub fn SetDataContext<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, super::DependencyObject> for &AppBar { + fn into_param(self) -> ::windows::core::Param<'a, super::DependencyObject> { + ::windows::core::Param::Owned(::core::convert::Into::::into(::core::clone::Clone::clone(self))) } - pub fn Style(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; +} +unsafe impl ::core::marker::Send for AppBar {} +unsafe impl ::core::marker::Sync for AppBar {} +#[repr(transparent)] +#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq, :: core :: clone :: Clone, :: core :: fmt :: Debug)] +pub struct AppBarButton(pub ::windows::core::IInspectable); +impl AppBarButton { + pub fn Label(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = self; unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - pub fn SetStyle<'a, Param0: ::windows::core::IntoParam<'a, super::Style>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetLabel<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn Parent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn Icon(&self) -> ::windows::core::Result { + let this = self; unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn FlowDirection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::FlowDirection = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetFlowDirection(&self, value: super::FlowDirection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), value).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Loaded<'a, Param0: ::windows::core::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveLoaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn Unloaded<'a, Param0: ::windows::core::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "Foundation")] - pub fn RemoveUnloaded<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn SizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveSizeChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetIcon<'a, Param0: ::windows::core::IntoParam<'a, IconElement>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = self; + unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - #[cfg(feature = "Foundation")] - pub fn LayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsCompact(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: bool = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveLayoutUpdated<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn SetIsCompact(&self, value: bool) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - pub fn FindName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn LabelProperty() -> ::windows::core::Result { + Self::IAppBarButtonStatics(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).51)(::core::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[cfg(feature = "UI_Xaml_Data")] - pub fn SetBinding<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::core::IntoParam<'a, super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).52)(::core::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } - } - pub fn RequestedTheme(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::ElementTheme = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - pub fn SetRequestedTheme(&self, value: super::ElementTheme) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn DataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } + pub fn IconProperty() -> ::windows::core::Result { + Self::IAppBarButtonStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RemoveDataContextChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } + pub fn IsCompactProperty() -> ::windows::core::Result { + Self::IAppBarButtonStatics(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Data")] - pub fn GetBindingExpression<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn new() -> ::windows::core::Result { + Self::IAppBarButtonFactory(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::(result__) - } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn Loading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn LabelPosition(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) + let mut result__: CommandBarLabelPosition = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - #[cfg(feature = "Foundation")] - pub fn RemoveLoading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } - } - #[cfg(feature = "Foundation")] - pub fn DesiredSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn SetLabelPosition(&self, value: CommandBarLabelPosition) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value).ok() } } - pub fn AllowDrop(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn IsInOverflow(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetAllowDrop(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Opacity(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn DynamicOverflowOrder(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: f64 = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).9)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: i32 = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).10)(::core::mem::transmute_copy(this), value).ok() } + pub fn SetDynamicOverflowOrder(&self, value: i32) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), value).ok() } } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Clip(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn LabelPositionProperty() -> ::windows::core::Result { + Self::IAppBarButtonStatics3(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).11)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetClip<'a, Param0: ::windows::core::IntoParam<'a, super::Media::RectangleGeometry>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).12)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn RenderTransform(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn IsInOverflowProperty() -> ::windows::core::Result { + Self::IAppBarButtonStatics3(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).13)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetRenderTransform<'a, Param0: ::windows::core::IntoParam<'a, super::Media::Transform>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).14)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn Projection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { + pub fn DynamicOverflowOrderProperty() -> ::windows::core::Result { + Self::IAppBarButtonStatics3(|this| unsafe { let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).15)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } - } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetProjection<'a, Param0: ::windows::core::IntoParam<'a, super::Media::Projection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).16)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + (::windows::core::Interface::vtable(this).8)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - #[cfg(feature = "Foundation")] - pub fn RenderTransformOrigin(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + pub fn KeyboardAcceleratorTextOverride(&self) -> ::windows::core::Result<::windows::core::HSTRING> { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: super::super::super::Foundation::Point = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).17)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::core::mem::ManuallyDrop<::windows::core::HSTRING> = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::<::windows::core::HSTRING>(result__) } } - #[cfg(feature = "Foundation")] - pub fn SetRenderTransformOrigin<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::Point>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).18)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } + pub fn SetKeyboardAcceleratorTextOverride<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { + let this = &::windows::core::Interface::cast::(self)?; + unsafe { (::windows::core::Interface::vtable(this).7)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } } - pub fn IsHitTestVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; + #[cfg(feature = "UI_Xaml_Controls_Primitives")] + pub fn TemplateSettings(&self) -> ::windows::core::Result { + let this = &::windows::core::Interface::cast::(self)?; unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).19)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) } } - pub fn SetIsHitTestVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).20)(::core::mem::transmute_copy(this), value).ok() } - } - pub fn Visibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::Visibility = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).21)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn KeyboardAcceleratorTextOverrideProperty() -> ::windows::core::Result { + Self::IAppBarButtonStatics4(|this| unsafe { + let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); + (::windows::core::Interface::vtable(this).6)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) + }) } - pub fn SetVisibility(&self, value: super::Visibility) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).22)(::core::mem::transmute_copy(this), value).ok() } + pub fn IAppBarButtonStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(feature = "Foundation")] - pub fn RenderSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::Size = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).23)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IAppBarButtonFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn UseLayoutRounding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).24)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } + pub fn IAppBarButtonStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - pub fn SetUseLayoutRounding(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).25)(::core::mem::transmute_copy(this), value).ok() } + pub fn IAppBarButtonStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { + static mut SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); + unsafe { SHARED.call(callback) } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn Transitions(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).26)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +unsafe impl ::windows::core::RuntimeType for AppBarButton { + const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.AppBarButton;{4459a451-69e8-440c-9896-4bb4f5f642d1})"); +} +unsafe impl ::windows::core::Interface for AppBarButton { + type Vtable = IAppBarButton_abi; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4459a451_69e8_440c_9896_4bb4f5f642d1); +} +impl ::windows::core::RuntimeName for AppBarButton { + const NAME: &'static str = "Windows.UI.Xaml.Controls.AppBarButton"; +} +impl ::core::convert::From for ::windows::core::IUnknown { + fn from(value: AppBarButton) -> Self { + value.0 .0 } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn SetTransitions<'a, Param0: ::windows::core::IntoParam<'a, super::Media::Animation::TransitionCollection>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).27)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl ::core::convert::From<&AppBarButton> for ::windows::core::IUnknown { + fn from(value: &AppBarButton) -> Self { + value.0 .0.clone() } - #[cfg(feature = "UI_Xaml_Media")] - pub fn CacheMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).28)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Owned(self.0 .0) } - #[cfg(feature = "UI_Xaml_Media")] - pub fn SetCacheMode<'a, Param0: ::windows::core::IntoParam<'a, super::Media::CacheMode>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).29)(::core::mem::transmute_copy(this), value.into_param().abi()).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { + ::windows::core::Param::Borrowed(&self.0 .0) } - pub fn IsTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).30)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::From for ::windows::core::IInspectable { + fn from(value: AppBarButton) -> Self { + value.0 } - pub fn SetIsTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).31)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::From<&AppBarButton> for ::windows::core::IInspectable { + fn from(value: &AppBarButton) -> Self { + value.0.clone() } - pub fn IsDoubleTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).32)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Owned(self.0) } - pub fn SetIsDoubleTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).33)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { + ::windows::core::Param::Borrowed(&self.0) } - pub fn IsRightTapEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).34)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::TryFrom for ICommandBarElement { + type Error = ::windows::core::Error; + fn try_from(value: AppBarButton) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - pub fn SetIsRightTapEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).35)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::TryFrom<&AppBarButton> for ICommandBarElement { + type Error = ::windows::core::Error; + fn try_from(value: &AppBarButton) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - pub fn IsHoldingEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: bool = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).36)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ICommandBarElement> for AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, ICommandBarElement> { + ::windows::core::IntoParam::into_param(&self) } - pub fn SetIsHoldingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).37)(::core::mem::transmute_copy(this), value).ok() } +} +impl<'a> ::windows::core::IntoParam<'a, ICommandBarElement> for &AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, ICommandBarElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn ManipulationMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::Input::ManipulationModes = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).38)(::core::mem::transmute_copy(this), &mut result__).from_abi::(result__) - } +} +impl ::core::convert::TryFrom for ICommandBarElement2 { + type Error = ::windows::core::Error; + fn try_from(value: AppBarButton) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "UI_Xaml_Input")] - pub fn SetManipulationMode(&self, value: super::Input::ManipulationModes) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).39)(::core::mem::transmute_copy(this), value).ok() } +} +impl ::core::convert::TryFrom<&AppBarButton> for ICommandBarElement2 { + type Error = ::windows::core::Error; + fn try_from(value: &AppBarButton) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Input"))] - pub fn PointerCaptures(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: ::windows::core::RawPtr = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).40)(::core::mem::transmute_copy(this), &mut result__).from_abi::>(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ICommandBarElement2> for AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, ICommandBarElement2> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).41)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +impl<'a> ::windows::core::IntoParam<'a, ICommandBarElement2> for &AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, ICommandBarElement2> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyUp<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).42)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: AppBarButton) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] - pub fn KeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::Input::KeyEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).43)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&AppBarButton> for super::super::Composition::IAnimationObject { + type Error = ::windows::core::Error; + fn try_from(value: &AppBarButton) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveKeyDown<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).44)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Composition::IAnimationObject> for AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Composition::IAnimationObject> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation")] - pub fn GotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).45)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Composition::IAnimationObject> for &AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Composition::IAnimationObject> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveGotFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).46)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom for super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: AppBarButton) -> ::windows::core::Result { + ::core::convert::TryFrom::try_from(&value) } - #[cfg(feature = "Foundation")] - pub fn LostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).47)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl ::core::convert::TryFrom<&AppBarButton> for super::super::Composition::IVisualElement { + type Error = ::windows::core::Error; + fn try_from(value: &AppBarButton) -> ::windows::core::Result { + ::windows::core::Interface::cast(value) } - #[cfg(feature = "Foundation")] - pub fn RemoveLostFocus<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).48)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Composition::IVisualElement> for AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Composition::IVisualElement> { + ::windows::core::IntoParam::into_param(&self) } - #[cfg(feature = "Foundation")] - pub fn DragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::DragEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__: super::super::super::Foundation::EventRegistrationToken = ::core::mem::zeroed(); - (::windows::core::Interface::vtable(this).49)(::core::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::(result__) - } +} +#[cfg(feature = "UI_Composition")] +impl<'a> ::windows::core::IntoParam<'a, super::super::Composition::IVisualElement> for &AppBarButton { + fn into_param(self) -> ::windows::core::Param<'a, super::super::Composition::IVisualElement> { + ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) } - #[cfg(feature = "Foundation")] - pub fn RemoveDragEnter<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).50)(::core::mem::transmute_copy(this), token.into_param().abi()).ok() } +} +impl ::core::convert::From for Button { + fn from(value: AppBarButton) -> Self { + ::core::convert::Into::